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:	Mon, 9 Apr 2012 11:17:35 -0700
From:	Ying Han <yinghan@...gle.com>
To:	Alexey Ivanov <rbtz@...dex-team.ru>
Cc:	"gnehzuil.lzheng@...il.com" <gnehzuil.lzheng@...il.com>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-mm@...ck.org" <linux-mm@...ck.org>,
	Rik van Riel <riel@...hat.com>
Subject: Re: mapped pagecache pages vs unmapped pages

On Mon, Apr 9, 2012 at 10:11 AM, Alexey Ivanov <rbtz@...dex-team.ru> wrote:
> Thanks for the hint!
>
> Can anyone clarify the reason of not using zone->inactive_ratio in inactive_file_is_low_global()?

anonymous pages starts out referenced in active list, and scanning the
whole active list will only rotate those pages. So we would like to
limit the size of inactive anon to save scanning.

--Ying


>
> 06.04.2012, 11:16, "gnehzuil.lzheng@...il.com" <gnehzuil.lzheng@...il.com>:
>> On 04/06/2012 08:29 AM, Alexey Ivanov wrote:
>>
>>>  In progress of migration from FreeBSD to Linux and we found some strange behavior: periodically running tasks (like rsync/p2p deployment) evict mapped pages from memory.
>>>
>>>  From my little research I've found following lkml thread:
>>>  https://lkml.org/lkml/2008/6/11/278
>>>  And more precisely this commit: https://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=4f98a2fee8acdb4ac84545df98cccecfd130f8db
>>>  which along with splitting LRU into "anon" and "file" removed support of reclaim_mapped.
>>>
>>>  Is there a knob to prioritize mapped memory over unmapped (without modifying all apps to use O_DIRECT/fadvise/madvise or mlocking our data in memory) or at least some way to change proportion of Active(file)/Inactive(file)?
>>
>> Hi Alexey,
>>
>> Cc to linux-mm mailing list.
>>
>> I have met the similar problem and I have sent a mail to discuss it.
>> Maybe it can help you
>> (http://marc.info/?l=linux-mm&m=132947026019538&w=2).
>>
>> Now Konstantin has sent a patch set to try to expand vm_flags from 32
>> bit to 64 bit.  Then we can add the new flag into vm_flags and
>> prioritize mmaped pages in madvise(2).
>>
>> Regards,
>> Zheng
>> --
>> 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/
>
> --
> Alexey Ivanov
> Yandex Search Admin Team
> *************
> tel.: +7 (985) 120-35-83 (int. 7176)
> http://staff.yandex-team.ru/rbtz
> *************
>
> --
> To unsubscribe, send a message with 'unsubscribe linux-mm' in
> the body to majordomo@...ck.org.  For more info on Linux MM,
> see: http://www.linux-mm.org/ .
> Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
> Don't email: <a href=mailto:"dont@...ck.org"> email@...ck.org </a>
--
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