On Jan 16, 2008 13:30 -0800, Valerie Henson wrote:I discussed this with Ted at one point also. This is a generic problem, not just for readahead, because "fsck" can run multiple e2fsck in parallel and in case of many large filesystems on a single node this can cause memory usage problems also. What I was proposing is that "fsck.{fstype}" be modified to return an estimated minimum amount of memory needed, and some "desired" amount of memory (i.e. readahead) to fsck the filesystem, using some parameter like "fsck.{fstype} --report-memory-needed /dev/XXX". If this does not return the output in the expected format, or returns an error then fsck will assume some amount of memory based on the device size and continue as it does today. If the fsck.{fstype} does understand this parameter, then fsck makes a decision based on devices, parallelism, total RAM (less some amount to avoid thrashing), then it can call the individual fsck commands with "--maximum-memory MMM /dev/XXX" so each knows how much cache it can allocate. This parameter can also be specified by the user if running e2fsck directly. I haven't looked through your patch yet, but I hope to get to it soon. Cheers, Andreas -- Andreas Dilger Sr. Staff Engineer, Lustre Group Sun Microsystems of Canada, Inc. - To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| David Miller | Re: Slow DOWN, please!!! |
| Greg Kroah-Hartman | [PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Heiko Carstens | Re: -mm merge plans for 2.6.23 -- sys_fallocate |
git: | |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| David Miller | [GIT]: Networking |
| Jan Engelhardt | Re: iptables very slow after commit 784544739a25c30637397ace5489eeb6e15d7d49 |
