lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090305142230.GA23465@localhost>
Date:	Thu, 5 Mar 2009 22:22:30 +0800
From:	Wu Fengguang <fengguang.wu@...el.com>
To:	Markus <M4rkusXXL@....de>
Cc:	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	Zdenek Kabelac <zkabelac@...hat.com>,
	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	Lukas Hejtmanek <xhejtman@....muni.cz>
Subject: Re: drop_caches ...

Hi Markus,

On Thu, Mar 05, 2009 at 04:05:26PM +0200, Markus wrote:
> > Could you please try the attached patch which will also show the
> > user and process that opened these files? It adds three more fields
> > when CONFIG_PROC_FILECACHE_EXTRAS is selected.
> > 
> > Thanks,
> > Fengguang
> >  
> > On Thu, Mar 05, 2009 at 01:55:35PM +0200, Markus wrote:
> > > 
> > > # sort -n -k 3 filecache-2009-03-05 | tail -n 5
> > >      15886       7112     7112     100      1    d- 00:08
> > > (tmpfs)        /dev/zero\040(deleted)
> > >      16209      35708    35708     100      1    d- 00:08
> > > (tmpfs)        /dev/zero\040(deleted)
> > >      16212      82128    82128     100      1    d- 00:08
> > > (tmpfs)        /dev/zero\040(deleted)
> > >      15887     340024   340024     100      1    d- 00:08
> > > (tmpfs)        /dev/zero\040(deleted)
> > >      15884     455008   455008     100      1    d- 00:08
> > > (tmpfs)        /dev/zero\040(deleted)
> > > 
> > > The sum of the third column is 1013 MB.
> > > To note the biggest ones (or do you want the whole file?)... and 
> thats 
> > > after a sync and a drop_caches! (Can be seen in the commands given.)
> 
> I could, but I know where these things belong to. Its from sphinx (a 
> mysql indexer) searchd. It loads parts of the index into memory.
> The sizes looked well-known and killing the searchd will reduce "cached" 
> to a normal amount ;)

And it's weird about the file name: /dev/zero.  I wonder how it
managed to create that file, and then delete it, inside a tmpfs!

Just out of curiosity, are they shm objects? Can you show us the
output of 'df'? In your convenient time.

> I just dont know why its in "cached" (can that be swapped out btw?).
> But I think thats not a problem of the kernel, but of anonymous 
> mmap-ing.

You know, because the file is created in tmpfs, which is swap-backed.
By definition the pages here cannot be dropped by third-party.

> I think its resolved, thanks to everybody and Fengguang in particular!

You are welcome :-)

Thanks,
Fengguang
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ