Re: [PATCH 2/2] percpu_counter: Put a reasonable upper bound onpercpu_counter_batch

From: Ted Ts'o
Date: Mon Aug 29 2011 - 09:27:58 EST


On Fri, Aug 26, 2011 at 07:48:52AM -0400, Theodore Tso wrote:
>
> I understand why we would want to reduce this number. Unfortunately, the
> question is what do we do if all 1024 threads try to do buffered writes into
> the file system at the same instant, when we have less than 4 megabytes
> of space left?

Oops, sorry, that should be 4 GB of space left (i.e., what do we do if
all 1024 cpu's all try write 1024 4k blocks all at the same time).
Imagine an simulation application where all threads finish at more or
less the same time and then try to write out their data files at the
same time....

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/