Re: 2.4.24 Paging Fault, Cache tries to swap with no swap partition

From: vda
Date: Sat Feb 14 2004 - 15:45:14 EST


On Saturday 14 February 2004 19:06, Ross Dickson wrote:
> I have an imaging system writing files to removable hard drives.
> Compact Flash boot with ram drives so I usually have no swap partition or
> file.
>
> Recently I upgraded kernel from 2.4.20 to 2.4.24.
>
> System has "mem=460M" (512M ram fitted) and starts with about
> 400M free. After recording for a while the Cached ram acquires all
> but about 4Mb MemFree.
>
> On a hot 38C day it started Oops'ing re paging memory. It runs the

Too vague.
Do you have any logging? At least a circular buffer? Anything?

> same 2 programs all day gathering and compressing images.
> Sorry I have no detail on the Oops at the moment, computer is in a vehicle
> and does not normally have a screen. From memory it couldn't allocate a
> virtual page.
>
> I found if I put in a 16Mb ram drive as swap then it would grab
> roughly 1.4Mb of it on occasion and keep it until recording stopped
> for a while. SwapCached is either 0Kb or 1024Kb, not anything else.

If swap is active, some of it may be used even when box is not
heavily loaded. That's normal.

> Is this behaviour expected - to require a swap file?

No.

> Can the paging cache be tuned in /proc or somewhere to prevent it being so
> greedy as to want more memory than the machine has?

Maybe. But you should concentrate on finding where exactly it oopsed.

> Is the quickest fix to give it more ram. I read on another posting that
> with greater than 512Mb the cache won't grab any more?

Please don't succumb to 'add more RAM' syndrome. 460 megs should be fine
for you. I'd say better find the root of the problem.
--
vda

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