Re: Consider for longterm kernels: mm: avoid swapping out with swappiness==0

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 10, 2012 at 10:07 AM, Shentino <shentino@xxxxxxxxx> wrote:
> On Mon, Sep 10, 2012 at 6:36 AM, Cong Wang <xiyou.wangcong@xxxxxxxxx> wrote:
>> On Sun, 09 Sep 2012 at 18:03 GMT, Shentino <shentino@xxxxxxxxx> wrote:
>>>
>>> Just curious, but what theoretically would happen if someone were to
>>> want to set swappiness to 200 or something?
>>>
>>> Should it be sorta like vfs_cache_pressure?
>>>
>>
>>
>> How could it be set to 200? As 0~100 is valid:
>>
>>         {
>>                         .procname       = "swappiness",
>>                         .data           = &vm_swappiness,
>>                         .maxlen         = sizeof(vm_swappiness),
>>                         .mode           = 0644,
>>                         .proc_handler   = proc_dointvec_minmax,
>>                         .extra1         = &zero,
>>                         .extra2         = &one_hundred,
>>         },
>
> My comment/question was more abstract and focusing on the comparison
> to vfs_cache_pressure.

Just to be clear about what I meant.

Both swapping and reclaiming from dentry/inode caches both share the
common factor of being alternatives to reclaiming from page cache when
memory is tight.

So I was wondering how similiar in effect these two knobs should be.

One possible use case off the top of my head is a file server that
banks heavily on page cache and spends most of its runtime sending
file data over the network.  It might be overkill but swappiness > 100
might actually be beneficial here.  I have no numbers to back it up
though as it's a rough idea.

Sorry if I'm butting in on the subject but I was curious about the idea.

Also still learning how to pos tin general on the kernel lists, so
apologies if I've been rude or anything.

>
> :P
>>
>> --
>> To unsubscribe, send a message with 'unsubscribe linux-mm' in
>> the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
>> see: http://www.linux-mm.org/ .
>> Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@xxxxxxxxx.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@xxxxxxxxx";> email@xxxxxxxxx </a>


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]