由买买提看人间百态

topics

全部话题 - 话题: thrashing
首页 上页 1 2 3 4 5 (共5页)
f**e
发帖数: 1269
1
来自主题: SWJTU版 - gauchy把照片发来西西嘛
lick
v. licked, lick·ing, licks
v. tr.
To pass the tongue over or along: lick a stamp.
To lap up.
To lap or flicker at like a tongue: The waves licked the sides of the boat.
Slang. To punish with a beating; thrash.
Slang. To get the better of; defeat: licked her weight problem.
a*****c
发帖数: 3525
2
从这个词(Hokkien dialect)才知道这个牛妈妈是福建人。
http://online.wsj.com/article/SB1000142405274870411150457605971
* The Wall Street Journal
* THE SATURDAY ESSAY
* JANUARY 8, 2011
Why Chinese Mothers Are Superior
Can a regimen of no playdates, no TV, no computer games and hours of music
practice create happy kids? And what happens when they fight back?
By AMY CHUA
A lot of people wonder how Chinese parents raise such stereotypically
successful kids. They wonder what these parents do to produce so ma... 阅读全帖
T********l
发帖数: 1670
3
来自主题: Zhejiang版 - Why Chinese Mothers are Superior(ZZ)
Why Chinese Mothers Are Superior
THE SATURDAY ESSAY JANUARY 8, 2011
By AMY CHUA
A lot of people wonder how Chinese parents raise such stereotypically successful kids. They wonder what these parents do to produce so many math whizzes and music prodigies, what
it's like inside the family, andwhether they could do it too. Well, I can tell them, because I've done it. Here are some things my daughters, Sophia and Louisa, were never allowed to do:
• attend a sleepover
• have a playdate
&#... 阅读全帖
t*****n
发帖数: 1589
4
来自主题: Zhejiang版 - 十年之后重读芥川
你说的莽林中就是竹林深处吧,不知道哪个是通译,日人就是没有那种宏大深沉劲儿,
所以趋于扭曲变态就像鲁迅说的溃肿桃花
像日本的thrash metal和别国就不同,有点丧心病狂的意思,有个叫sabbat的black
metal band国际知名,也是扭曲变态多于西方的那种邪恶神秘恐怖

了却短促的一生
b***s
发帖数: 14
5
来自主题: Database版 - scalable database 是啥意思
in another word, graceful degradation in performance instead of
thrashing.
k*****y
发帖数: 744
6
http://www.brighthub.com/computing/windows-platform/articles/52
A hard fault happens when the address in memory of part of a program is no
longer in main memory, but has been instead swapped out to the paging file,
making the system go looking for it on the hard disk. When this happens a
lot, it causes slowdowns and increased hard disk activity. When it happens
an awful lot, the possibility of hard disk thrashing arises. That's when a
program stops responding, but the hard drive continues to run... 阅读全帖
l*****o
发帖数: 473
7
来自主题: Java版 - 多线程真头疼,但也挺有趣
我的一些看法:

有问题。
听楼主描述的现象是发生了page Thrashing.
IO bound的情况下,用多线程是非常有好处的。
在单CPU情况下,只有完全CPU bound的情况下,多线程是不利的。而且,多线程还可能
会引起false sharing,锁的开销等wanting。
w****w
发帖数: 521
8
来自主题: Linux版 - raspberry pi cluster
你这个慢主要是thrashing造成的,只要增加memory就行,上cluster没多大用。
r****o
发帖数: 1950
9
来自主题: Programming版 - 如何模拟实现thrashing?
前天onsite的一个题目,没答好。没什么思路。
请大侠们多指点。
l******e
发帖数: 12192
10
来自主题: Programming版 - 如何模拟实现thrashing?
哪个方面的?
如果是内存的,就几个函数交替的占用大内存,就行了。
r****o
发帖数: 1950
11
来自主题: Programming版 - 如何模拟实现thrashing?
多谢,怎么让几个函数交替运行呢?多线程吗?
l******e
发帖数: 12192
12
来自主题: Programming版 - 如何模拟实现thrashing?
loop就可以了么
r****o
发帖数: 1950
13
来自主题: Programming版 - 如何模拟实现thrashing?
非常感谢。我还想问一下,如果loop的话,一个函数退出,它分配的local内存就释放
了吧。 你是说用malloc()分配内存吗?
l******e
发帖数: 12192
14
来自主题: Programming版 - 如何模拟实现thrashing?
当然是在heap上
r****o
发帖数: 1950
15
来自主题: Programming版 - 如何模拟实现thrashing?
非常感谢。你是说malloc之后不free吗?
但是这样的话,后面的函数再malloc大内存会不会就返回失败了?
l******e
发帖数: 12192
16
来自主题: Programming版 - 如何模拟实现thrashing?
可以先malloc好,每个函数用
比如
char * pa = (char *) malloc(1024*1024*124);
char * pb = (char *) malloc(1024*1024*124);
while(1)
{
fa(pa);
fb(pb);
}
r****o
发帖数: 1950
17
来自主题: Programming版 - 如何模拟实现thrashing?
多谢。是不是malloc分配是否成功取决于虚拟内存的大小,而不是物理内存的大小?
p***o
发帖数: 1252
18
来自主题: Programming版 - 程序占用很大内存
Probably thrashing will kill many graph algorithms ...
t****t
发帖数: 6806
19
atomic operation的瓶颈主要在内存控制器和各CPU之间对cache的thrashing, 并不是
毫无代价的. 不过确实比数据库实现要快很多了.
但是记录不好搞, 一旦垮了就全完蛋.
k**********g
发帖数: 989
20
来自主题: Programming版 - 我来说说go的目标对手吧

Ideally, these frameworks should have supported two important models:
(1) dataflow model (similar to FRP, functional reactive programming, but
without the "leaky abstractions"), and
(2) Task dependency DAG model
Microsoft PPL (parallel patterns library) supports #1 out of the box.
I implemented the second model twice, in 2012 (without PPL) and 2013 (on top
of PPL). Relying on PPL simplifies the management of the thread pool,
especially for its initialization, automacially spinning up new thread... 阅读全帖
m********2
发帖数: 89
21
来自主题: Programming版 - 学python的一点小感觉哈
"200多m的dic" 是只200 million k-v entries ? 才用1.45g内存 ? 不可能吧? 平均
一个k-v entry才不到 8 bytes ?
在我的x230, 16GB mem 上跑 200 million entries dict 会 page reclaim thrashing.
跑 100 million entries 的 dict 没问题:
# t.py
def t(n):
d = { i:i for i in range(n) }
print( hex(d[n-1]) )
python3 -m timeit -n 2 -r 1 -s 'import t' 't.t(100*2**20)'
2 loops, best of 1: 10.7 sec per loop
今天有点但疼:)
C**********r
发帖数: 8189
22
来自主题: Programming版 - 学python的一点小感觉哈

thrashing.
他可能有很多function套function,俺不知。俺觉得其实还是得会用的人来喷下比较有
说服力。
Java 8据说偷了好多functional的语法。
w***g
发帖数: 5958
23
来自主题: Programming版 - haskell怎么调试好?
简单做做算术就知道。Lock是实现预防,overhead是L,每次运算都需要,所以概率为1.
总的来说overhead为L. L随着concurrency的增加非常慢,可以认为是
常数。对于单个lock来说,系统吞吐量基本上就是硬件所能支持的上限U减去overhead
: U - L。硬件用足后即使再增加线程,吞吐量基本上不会有太大的下降。
STM是事后补救,overhead是S. S和具体需要rollback和重算的内容有关。
STM失败的概率p随着concurrency的增加而增加. 平均下来每次成功
以前需要重试的次数为p/(1-p),开销为 S*p/(1-p)。这个概率随着p->1会无限增大。
所以STM在线程数增加到一定程度会出现类似硬盘thrashing的情况,系统吞吐量最终会
下降到0。现在的CPU的线程数还没那么多,所以这点还没体现出来。
STM还有一个实际问题就是transaction比较大,并且线程数>>物理线程数的时候
会出问题。如果一个transaction还没完就因为时间片用完被切换下来,那么
这个transation成功的概率就会极大地减少。这个可以通过OS... 阅读全帖
h***z
发帖数: 233
24
A few things to try:
1. Compiler options: Turn on compiler optimization as well as any SIMD
2. Libraries: Link against pre-compiled libraries tuned for your computer
architecture and tune parameters of any libraries that you compile yourself.
3. Your code: Keep in mind the cache size of your CPU and write your code to
avoid cache thrashing.
L*****k
发帖数: 13042
25
来自主题: _Metal版 - pantera - cowboys from hell
slayer是thrash的老大了,风格还是不完全一样。
megadeth出身重金属,更传统些。
h*d
发帖数: 19309
26
http://www.vh1.com/news/222970/hard-rock-new-bands/
I often talk about the connections between metal and rock music. As far as I
am concerned, metal is just rock’s pissed off younger brother. As a
budding teenager discovering heavy music, my gateway was hard rock with a
metallic slant like Guns N Roses and Alice In Chains, or thrash metal bands
that were going through a rock-ish faze in the ’90s like Megadeth and
Metallica. The lines were very blurred from a categorization standpoint.
Before I b... 阅读全帖
w*******y
发帖数: 60932
27
All times posted are PST.
Arts, Crafts & Sewing
12:00 PM - Brother CP-6500 Computerized Sewing Machine:
http://www.amazon.com/gp/product/B0039YOVRW?smid=ATVPDKIKX0DER

Automotive
5:00 AM - Raider 02-1402 Snow Thrower Cab:
http://www.amazon.com/gp/product/B002ZTGLV6?smid=ATVPDKIKX0DER
8:00 AM - Duracell DRINVP175 175-Watt Pocket Inverter with 2.1-Amp USB Port:
http://www.amazon.com/gp/product/B004U1Y3VC?smid=ATVPDKIKX0DER
11:00 AM - Turtle Wax T-240KT Headlight Lens Restorer Kit:
http://www.ama... 阅读全帖
w*******y
发帖数: 60932
28
Link:
http://www.graveyardmall.com/mens-columbia-sportwear-hd-polariz
Description from the website follows. They claim price tags of $40 for each
. Google shopping shows them from $30-40, so seems like a good deal. I do
a lot of training (trail running & such) and glasses DO get thrashed!
Columbia Eyewear: for complete 2011 catalog styles you may get visit: Link:
http://www.gmicustom.com/product.asp?id=30&cid=2
LENS: Either HC Polarized or HD Polarized
NOSE PADS: Rubber nose pads provide grea... 阅读全帖
p******s
发帖数: 938
29
oh..rock and roll originates from Blues and Jazz,
and guitar is the most important instrument.
The bass plays the Root Note of the chord, and the rhythm guitar
plays the chord. It's pretty hard for beginner to distinguish
the bass from all the instruments, cos it's so low...
Rock is such a big genre and hard to tell what's the most famous..
Fade to Black is written by Metalica, the best band playing
Thrash Metal, a sub-genre of Heavy Metal,(I like them so much, :))
I can tell you some good band
首页 上页 1 2 3 4 5 (共5页)