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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 3 Aug 2006 09:55:50 +0200 (MEST)
From:	Jan Engelhardt <jengelh@...ux01.gwdg.de>
To:	Xin Zhao <uszhaoxin@...il.com>
cc:	linux-kernel <linux-kernel@...r.kernel.org>,
	linux-fsdevel@...r.kernel.org
Subject: Re: Can someone explain under what condition inode cache pages can
 be swapped out?



>
> Specifically, how a swaping system determine which page should be
> swapped out when memory is tight?

LRU, f.ex.

> Intuitively, I think inode cache
> pages should be swapped out as late as possible.

I believe they are not swapped at all - they are shrunk when memory becomes 
a premium. (If this was a math class I'd say the cache size will be zero, 
although that's not too realistic in practice)

> But how Linux mkae
> decision on this? Why linux does not pin inode pages in the memory?

Ugh hell no. Then you could trigger OOM by simply walking a big filesystem. 


Jan Engelhardt
-- 
-
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