mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephan Maciej <stephan@maciej.muc.de>
To: linux-kernel@vger.kernel.org
Subject: Re: memory leak?
Date: Mon, 22 Jul 2002 00:27:31 +0200	[thread overview]
Message-ID: <200207220027.31728.stephan@maciej.muc.de> (raw)
In-Reply-To: <1027261239.785.8.camel@tux>

On Sunday 21 July 2002 16:20, Martin Josefsson wrote:
> free don't know about slabcaches. take a look in /proc/slabinfo and see
> what's using that memory. it's not a leak, the memory will be free'd
> when the machine is under enough memory pressure.

What happens when updatedb(1) runs? It does a `find /' and thus loads a lot of 
fs related data into memory, which makes the kernel caches grow. But how 
aggressive do these caches grow? Does this lead to any swapout because the 
kernel likes it better to have some dentries and inodes in memory than 
probably not-recently-used user pages?

If so, this would mean that a low-priority job like updatedb(1) makes pages 
being swapped out that definitely have a higher priority. For updatedb and 
similar things (largish ls -lR's) it would make sense to 
load-and-quickly-forget all the inode and dentry cache stuff. Another 
optimisation syscall, like madvise?

Stephan

-- 
"That's interesting.  Can it be disabled?" -- someone on LKML, after being 
told about the PIV hyperthreading features


  reply	other threads:[~2002-07-21 22:25 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-21 14:00 Måns Rullgård
2002-07-21 14:19 ` Rik van Riel
2002-07-21 14:23   ` Måns Rullgård
2002-07-21 16:33     ` Alan Cox
2002-07-21 20:48       ` Måns Rullgård
2002-07-21 21:08         ` Rik van Riel
2002-07-30 16:08           ` Bill Davidsen
2002-07-30 16:43             ` Rik van Riel
2002-07-22 14:08 ` Andrew Rodland
2002-07-21 14:19   ` Måns Rullgård
2002-07-21 14:20   ` Martin Josefsson
2002-07-21 22:27     ` Stephan Maciej [this message]
2002-07-22 14:26     ` Andrew Rodland
2002-07-21 14:50       ` Rik van Riel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200207220027.31728.stephan@maciej.muc.de \
    --to=stephan@maciej.muc.de \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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®