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]
Date:	Mon, 5 May 2008 13:40:17 -0700
From:	"Kevin Burton" <burton@...lrank.com>
To:	"Andi Kleen" <andi@...stfloor.org>
Cc:	"FD Cami" <francois.cami@...e.fr>, linux-kernel@...r.kernel.org
Subject: Re: Ability to limit or disable page caching?

... and here's another point I don't fully grok:

http://www.westnet.com/~gsmith/content/linux-pdflush.htm

"By default, Linux will aggressively swap processes out of physical
memory onto disk in order to keep the disk cache as large as possible.
This means that pages that haven't been used recently will be pushed
into swap long before the system even comes close to running out of
memory, which is an unexpected behavior compared to some operating
systems. The /proc/sys/vm/swappiness parameter controls how aggressive
Linux is in this area. "

...

"A value of 0 will avoid ever swapping out just for caching space.
Using 100 will always favor making the disk cache bigger. Most
distributions set this value to be 60, tuned toward moderately
aggressive swapping to increase disk cache. "

..... but we're running on zero and this machine still has 500MB of
free memory.  Why is it swapping?

Kevin

On Mon, May 5, 2008 at 1:31 PM, Kevin Burton <burton@...lrank.com> wrote:
> Though mlockall isn't going to fix this problem because the OOM killer
> will still kill it if it runs out of memory.
>
> I want to preserve the scenario where we go 10 bytes over memory and
> the kernel just swaps out those 10 bytes.
>
> Kevin
>
> On Mon, May 5, 2008 at 1:28 PM, Kevin Burton <burton@...lrank.com> wrote:
>> We're actually running mlock which is native to MySQL.... of course I
>> didn't think about whether our secondary process is paging not our
>> MySQL process.
>
>
> --
> Founder/CEO Tailrank.com
> Location: San Francisco, CA
> AIM/YIM: sfburtonator
> Skype: burtonator
> Work: http://spinn3r.com and http://tailrank.com
> Blog: http://feedblog.org
> Cell: 415-637-8078
> Fax: 1-415-358-419 PIN: 0092
>



-- 
Founder/CEO Tailrank.com
Location: San Francisco, CA
AIM/YIM: sfburtonator
Skype: burtonator
Work: http://spinn3r.com and http://tailrank.com
Blog: http://feedblog.org
Cell: 415-637-8078
Fax: 1-415-358-419 PIN: 0092
--
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