雨水已经落下的那天黄昏,村长站在磨坊前,脚下是被雨水浸透的谷子。十名割稻人呆立一旁,而那座唯一的磨坊还在吱呀作响,磨着今早才送来的最后一批谷子。他终于明白:再多割稻人,也快不过这座磨坊。
On the evening the rains finally fell, the village elder stood before the mill, his boots in soaked grain. Ten threshers stood idle, while the single mill still creaked and ground the last batch that had arrived only that morning. He understood at last: no number of threshers could outpace this one mill.
三个月前,他用村里的全部积蓄做了第一笔买卖。那时割稻人只有两名,磨坊只有一座。他把割稻人翻倍到四名,谷子从田里到磨坊的时间少了一半;整个收成到成粮的日子,从二十天缩到十一天。他以为找到了窍门。
Three months earlier, he had made his first bargain with all the village's savings. There were then only two threshers and one mill. He doubled the threshers to four, and the time grain took from field to mill fell by half; the whole harvest-to-grain cycle shrank from twenty days to eleven. He thought he had found the trick.
于是他照搬此法。第二次,他把割稻人再加倍到八名,又添了两人翻谷。可这一次,整个周期只从十一天缩到八天。磨坊门口的谷子排成了长队,磨盘一刻不停,却始终只有那一座。省下的日子,全花在等磨坊上了。
So he repeated the method. This time he doubled the threshers again to eight and added two grain-turners. But now the whole cycle only fell from eleven days to eight. Grain queued at the mill door; the grindstone never paused, yet there was still only that one mill. Every day saved had gone into waiting for the mill.
工匠曾给他一个报价:建第二座磨坊,要花相当于二十名割稻人一年工钱的银两。村长犹豫了——那几乎是他剩下的全部。他选了更便宜、看起来更稳的那条路:再加割稻人。临雨前最后一次盘点,割稻人已有二十名,而磨坊,仍是一座。
The mason had given him a price: a second mill would cost the wages of twenty threshers for a year. The elder hesitated; it was nearly all he had left. He chose the cheaper road, the one that looked safer: more threshers. At the final reckoning before the rains, there were twenty threshers, and still, one mill.
他蹲在磨坊的檐下,用树枝在泥地上算账。割稻的工夫从二十天压到了不足一天,可磨坊里那一整天,一分未减。整件事的速度,被这座唯一的磨坊死死钉住:哪怕他雇来一百名割稻人、把田里的活儿压成一瞬,谷子也还得在那座磨盘前排上整整一天。他省下的每一文银,都撞在了同一堵墙上。
He squatted under the mill's eaves and reckoned with a stick in the mud. Threshing had been crushed from twenty days to less than one, but that one day at the mill had not shrunk at all. The whole affair was pinned fast by this single mill: even had he hired a hundred threshers and squeezed the field work to an instant, the grain would still queue a whole day at that grindstone. Every coin of silver he saved had struck the same wall.
雨来了。没磨完的谷子,在磨坊外发了芽。村长把剩下的银两交给工匠,说:建第二座磨坊吧。可那一季的粮,已经烂了。他付的代价是:能并行去做的事,做得再快,也快不过那件只能一步步来、且无可替代的事。
The rains came. The un-milled grain sprouted and rotted outside the mill. The elder handed the mason his last silver and said: build the second mill. But that season's grain was already lost. The price he paid was this: what can be done in parallel, done ever faster, will never outrun the one thing that must proceed step by step and has no substitute.
注解:这是阿姆达尔定律(Amdahl's law)——一个系统整体加速的上限,由其中无法并行的串行部分占比决定;即便把可并行的部分优化到无穷快,整体也突破不了 1/(1-p) 这道由串行部分封死的顶。
Note: This is Amdahl's law — the ceiling on a system's overall speedup is set by the fraction of work that cannot be parallelized; even if the parallelizable part were made infinitely fast, the whole could never exceed 1/(1-p), the ceiling sealed by the serial portion.