From: Philippe Gerum <rpm@xenomai.org>
To: Dmitry Adamushko <dmitry.adamushko@domain.hid>
Cc: Xenomai help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot allocate memory
Date: Sat, 03 Feb 2007 20:06:26 +0100 [thread overview]
Message-ID: <1170529586.8282.38.camel@domain.hid> (raw)
In-Reply-To: <b647ffbd0702031020u2d02d234k309e5fa830c79d21@domain.hid>
On Sat, 2007-02-03 at 19:20 +0100, Dmitry Adamushko wrote:
> Hi,
>
> are there any other memory pools increasing while "MemFree" is decreasing?
>
> cat /proc/meminfo
>
> If it's kmalloc() - related, I'd expect "Slab" to be increasing.. [1]
>
> Moreover, if it's left to be running for quite some time, does it
> actually causes an "out-of-memory" problem in the end? [2]
>
> I have run "while true ; do cat /proc/interrupts; done" for some time
> and "MemFree" is going down but what's going up is "Buffers" +
> "Cached" (mainly, the first one) and not
> "Slab".
>
> cat /proc/interrupts returns file content which is different every
> time and might be cached (likely - "Buffers").. Actually, do you
> observe similar behaviour when reading any other /proc file (or even
> any regular) ?
>
> After all, Linux memory manager is quite dynamic in its behaviour, and
> "MemFree" does not really answer a question "how much memory is free"
> as there are some _reclaimable_ sources of memory ("buffers" and
> "cached")..
>
> So what's about [1]? Of course, if you can encounter [2] after some time..
>
Really, what I see here very much looks like a constant leakage on an
otherwise idle system, not some artefact from the mm; albeit the cached
mem seems stable, the free memory goes down irremediably. Not all /proc
entries seem to cause the issue, and the interesting thing is
that /proc/interrupts and /proc/xenomai/sched|stat all use the seqfile
support to output their data.
Anyway, I did not dig the issue enough code-wise to remove all the
conditionals from my wording, but there seems to be something wrong
somewhere, and that's not Xenomai related. Or, the Linux VM is seasoned
enough to try to make people think it loses memory albeit it doesn't.
--
Philippe.
next prev parent reply other threads:[~2007-02-03 19:06 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-02 8:43 [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot allocate memory M. Koehrer
2007-02-02 9:33 ` Philippe Gerum
2007-02-02 9:49 ` Philippe Gerum
2007-02-02 9:51 ` Gilles Chanteperdrix
2007-02-02 11:23 ` Philippe Gerum
2007-02-02 12:44 ` Philippe Gerum
2007-02-02 12:58 ` Re: [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot allocate M. Koehrer
2007-02-02 14:35 ` Philippe Gerum
2007-02-02 12:59 ` [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot allocate memory Rus V. Brushkoff
2007-02-02 14:31 ` Philippe Gerum
2007-02-02 14:36 ` Rus V. Brushkoff
2007-02-03 16:08 ` Rus V. Brushkoff
2007-02-03 16:38 ` Philippe Gerum
2007-02-03 18:20 ` Dmitry Adamushko
2007-02-03 19:06 ` Philippe Gerum [this message]
2007-02-04 13:54 ` Dmitry Adamushko
2007-02-04 14:01 ` Dmitry Adamushko
2007-02-05 10:02 ` Rus V. Brushkoff
2007-02-05 16:05 ` Paul
2007-02-04 7:16 ` Rus V. Brushkoff
2007-02-04 9:12 ` Philippe Gerum
2007-02-03 23:20 ` Paul
2007-02-02 14:42 ` Jan Kiszka
2007-02-02 14:55 ` Paul
2007-02-02 15:07 ` Rus V. Brushkoff
2007-02-02 15:16 ` Philippe Gerum
2007-02-02 15:29 ` Philippe Gerum
2007-02-02 10:16 ` Re: [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot allocate M. Koehrer
2007-02-02 14:13 ` Re: Re: [Xenomai-help] Error: cat: /proc/xenomai/stat: Cannot M. Koehrer
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=1170529586.8282.38.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=dmitry.adamushko@domain.hid \
--cc=xenomai@xenomai.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.