From: Anton Altaparmakov <aia21@cam.ac.uk>
To: Martin Bogomolni <martinbogo@gmail.com>
Cc: linux-os@analogic.com, Linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: NTFS - Kernel memory leak in driver for kernel 2.4.28?
Date: Thu, 17 Feb 2005 11:40:31 +0000 [thread overview]
Message-ID: <1108640432.7281.8.camel@imp.csi.cam.ac.uk> (raw)
In-Reply-To: <712fce105021609163a605f51@mail.gmail.com>
On Wed, 2005-02-16 at 09:16 -0800, Martin Bogomolni wrote:
> I should say that the malloc() succeeds, but the 16mb I need for the
> buffer are not available. Since there is no swap/page file in the
> embedded environment, there isn't enough memory left afterwards for
> the buffer.
>
> After taking another look at the problem, the kernel has a lot of
> memory tied up in the inode and dentry cache. I've tuned
> /proc/sys/vm/vm_cache_scan_ratio, vm_mapped_ratio, vm_vfs_scan_ratio
> with no real success in shrinking the amount of memory used by these
> caches.
>
> Is there a way to tune and shring the overall amount of memory the
> kernel attempts to use for the dentry/inode cache, or make it much,
> much more aggressive at clearing it?
Are you using the old (1.x) or new (2.x) ntfs driver?
If you are using the old one you could try using the new driver. That
should be a lot better than the old one in terms of how much memory it
uses. You can get an outdated patch (but should still work) for the new
driver here:
http://sourceforge.net/project/showfiles.php?group_id=13956&package_id=21892
Best regards,
Anton
--
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Unix Support, Computing Service, University of Cambridge, CB2 3QH, UK
Linux NTFS maintainer / IRC: #ntfs on irc.freenode.net
WWW: http://linux-ntfs.sf.net/ & http://www-stu.christs.cam.ac.uk/~aia21/
prev parent reply other threads:[~2005-02-17 11:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-02-16 16:28 Martin Bogomolni
2005-02-16 16:55 ` NTFS - Kernel memory leak in driver for kernel 2.4.28 (update) Martin Bogomolni
2005-02-16 17:00 ` NTFS - Kernel memory leak in driver for kernel 2.4.28? linux-os
2005-02-16 17:16 ` Martin Bogomolni
2005-02-16 18:03 ` kernel 2.4 inode/dentry cache not clearing on umount? Martin Bogomolni
2005-02-16 18:10 ` Martin Bogomolni
2005-02-17 11:40 ` Anton Altaparmakov [this message]
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=1108640432.7281.8.camel@imp.csi.cam.ac.uk \
--to=aia21@cam.ac.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-os@analogic.com \
--cc=martinbogo@gmail.com \
/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®