Re: [PATCH] VM strict overcommit

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Sat Jul 20 2002 - 19:59:21 EST


On Sun, 2002-07-21 at 00:30, Robert Love wrote:
> But "works for me" is a start and we can work on tuning it. No
> "swapless" mode will be perfect and while 65% may work for, another load
> with gross overhead may need more room.
>
> I sent you an email and told you I was doing this and asked your opinion
> on a percentage. Why are you picking on me now?

When did you send me mail - I certainly never saw it.

In terms of percentages I measured real world workloads. Its easy to
fail at apparently low values because the kernel has no kernel resource
management (beancounter never got merged) and because a process can
consume substantial real resources that are not its own address space
(page tables, kernel structures, file buffers and so forth)

Its also important to remember that executable pages are mapped
read-only and thus free. This means that the magic 50 value works on a
swapless ipaq in real use just as well as it does on a giant server.

If its actually a serious concern, eg for some of the weirder embedded
stuff you guys run at Montavista then I'd suggest changing it to have
three modes

0 and 1 as before

2 - some percentage of memory (default 50), and expose the percentage
setting by sysctl too.

That allows people to experiment, handles weird cases and deals with the
problem.

BTW: The oracle tests were not swapless, they were on a system with lots
of swap. The kernel overhead in some cases is just plain scary as I
suspect the IBM folks who have been working on large oracle setups can
testify..

-
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/



This archive was generated by hypermail 2b29 : Tue Jul 23 2002 - 22:00:34 EST