mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Denys Vlasenko <vda.linux@googlemail.com>
To: "Fred Tyler" <fredty8@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Slow, persistent memory leak in 2.6.20
Date: Sun, 26 Aug 2007 18:03:12 +0100	[thread overview]
Message-ID: <200708261803.12717.vda.linux@googlemail.com> (raw)
In-Reply-To: <466ad3f90708260916x5d19d0d3hd828e63520960192@mail.gmail.com>

On Sunday 26 August 2007 17:16, Fred Tyler wrote:
> So, I guess it worked? (I don't know what was supposed to happen, but
> memory usage dropped significantly when I did this.)

If you can reclaim "leaked" memory this way, it means that
you found a bug where cached data is incorrectly kept
in RAM in preference of other data.
(I'm assuming that you do have real problems after some time
of "leaking" memory - you mention that you get swap storms
and eventually machine is dead.)

> However, I'm not sure this staging machine has been up long enough or
> doing enough to exhibit the problem. I can try this on my production
> servers (the ones I provided graphs for) late tonight, but how safe is
> running this command? Does it permanently disable file caching? Do I

Yes, it's safe to do, anytime.

It's just a command to kernel to drop as much of currently
accumulated filesystem cache as it can. It is strictly
a debugging/benchmarking aid.

If you end up needing to do it once in a while to keep your machine
alive, something is definitely wrong.
--
vda

  parent reply	other threads:[~2007-08-26 17:03 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-26 14:39 Fred Tyler
2007-08-26 15:32 ` Alexey Dobriyan
2007-08-26 15:40 ` Fred Tyler
2007-08-26 15:51 ` Fred Tyler
2007-08-26 15:52   ` Jan Engelhardt
     [not found]     ` <466ad3f90708260914g3cb92f30q8d5672e3f9cf960c@mail.gmail.com>
2007-08-26 16:14       ` Fred Tyler
2007-08-26 16:16     ` Fred Tyler
2007-08-26 16:30       ` Jan Engelhardt
2007-08-26 16:49         ` Fred Tyler
2007-08-26 16:58           ` Jan Engelhardt
2007-08-26 16:58         ` Fred Tyler
2007-08-26 17:42           ` Jan Engelhardt
2007-08-26 17:03       ` Denys Vlasenko [this message]
2007-08-26 17:41         ` Fred Tyler
2007-08-26 17:44           ` Jan Engelhardt
2007-08-26 22:16 ` Jesper Juhl

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=200708261803.12717.vda.linux@googlemail.com \
    --to=vda.linux@googlemail.com \
    --cc=fredty8@gmail.com \
    --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®