mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Swap strangeness: total VIRT ~23mb for all processes [...]
@ 2004-10-28 18:04 Chuck Ebbert
  2004-10-29 19:13 ` Denis Vlasenko
  0 siblings, 1 reply; 2+ messages in thread
From: Chuck Ebbert @ 2004-10-28 18:04 UTC (permalink / raw)
  To: Denis Vlasenko; +Cc: Jan Engelhardt, linux-kernel

On Thu, 28 Oct 2004 at 14:44:53 +0300 Denis Vlasenko wrote:
> Even if I add up size of every process, *counting libc shared pages
> once per process* (which will overestimate memory usage), I arrive at
> 23mb *total memory required by all processes*. How come kernel
> found 90mb to swap out? There is NOTHING to swap out except those
> 23mb!
>
> (Of course when oom_trigger was running, kernel first swapped out
> those 23mb and then started swapping out momery taken by oom_trigger
> itself, but when oom_trigger was killed, its RAM *and* swapspace
> should be deallocated. Thus I expected to see ~20 mb swap usage).


I am seeing this with Mozilla in an Xnest session.  Even after I terminate
Mozilla + Xnest there is a huge amount of swapped-out memory (~100MB).  This
is on a system with 320MB of memory.  Since the problem goes away when I
leave X I had assumed it was an X bug (Fedora Core 1, not up-to-date) but
now I wonder...  Kernel version is 2.6.9 + patches from L-K but problem is
the same in base 2.6.9.


--Chuck Ebbert  28-Oct-04  10:48:07

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Swap strangeness: total VIRT ~23mb for all processes  [...]
  2004-10-28 18:04 Swap strangeness: total VIRT ~23mb for all processes [...] Chuck Ebbert
@ 2004-10-29 19:13 ` Denis Vlasenko
  0 siblings, 0 replies; 2+ messages in thread
From: Denis Vlasenko @ 2004-10-29 19:13 UTC (permalink / raw)
  To: Chuck Ebbert; +Cc: Jan Engelhardt, linux-kernel

On Thursday 28 October 2004 21:04, Chuck Ebbert wrote:
> On Thu, 28 Oct 2004 at 14:44:53 +0300 Denis Vlasenko wrote:
> > Even if I add up size of every process, *counting libc shared pages
> > once per process* (which will overestimate memory usage), I arrive at
> > 23mb *total memory required by all processes*. How come kernel
> > found 90mb to swap out? There is NOTHING to swap out except those
> > 23mb!
> >
> > (Of course when oom_trigger was running, kernel first swapped out
> > those 23mb and then started swapping out momery taken by oom_trigger
> > itself, but when oom_trigger was killed, its RAM *and* swapspace
> > should be deallocated. Thus I expected to see ~20 mb swap usage).
> 
> 
> I am seeing this with Mozilla in an Xnest session.  Even after I terminate
> Mozilla + Xnest there is a huge amount of swapped-out memory (~100MB).  This
> is on a system with 320MB of memory.  Since the problem goes away when I
> leave X I had assumed it was an X bug (Fedora Core 1, not up-to-date) but
> now I wonder...  Kernel version is 2.6.9 + patches from L-K but problem is
> the same in base 2.6.9.

I have no additional data yet, but it looks similar to the "oom triggers too
early while there's plenty of cache to get rid of" misbehavior which
was frequently seen in 2.4.10 era.

However, "90mb in swap on a system with 30 mb total virtual space of all
processes combined" is something entirely new :)
--
vda


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-29 19:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-28 18:04 Swap strangeness: total VIRT ~23mb for all processes [...] Chuck Ebbert
2004-10-29 19:13 ` Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®