Re: can max. cache size be selected?

Eric W. Biederman (ebiederm@xmission.com)
19 Nov 2001 01:55:08 -0700


Ivanovich <ivanovich@menta.net> writes:

> I ask this because lowering the max. cache size could solve the problem that
> some people have with too much memory going to swap and, in consequence,
> making some apps unresponsive for a time
>
> If max. cache size could be selected people who don't use much disk or just
> need to work with a lot of apps at the same time (desktop?) could reduce it
> to get better response when switching to inactive tasks who could have went
> to swap to grow the cache...
>
> am i wrong with my logic?

Linux is currently optimized for programs actually getting things done. So
idle processes are penalized. Getting fast responses from idle when the
system is under other kinds of load is an interesting problem. A simple
limit on cache size really does not address the problem, and truly penalizes
cases when things are getting done.

The only simple solution I can think of attacking swap clustering to make it
more efficient. In that case it may be possible to bring all data back from
swap in a single I/O transaction for a process. Which should be quiet
efficient both when the processes is swapped out and when it is being
swapped in.

> is this possible?

You have the source.

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