Thread (33 messages) 33 messages, 6 authors, 2015-02-16

Re: [PATCH v17 1/7] mm: support madvise(MADV_FREE)

flat view

From: Rik van Riel <hidden>
Date: 2015-02-06 18:40:44
Also in: linux-mm, lkml

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 02/06/2015 01:32 PM, Shaohua Li wrote:
On Fri, Feb 06, 2015 at 01:58:25PM +0100, Michal Hocko wrote:
quoted
On Thu 05-02-15 16:33:11, Shaohua Li wrote: [...]
quoted
Did you think about move the MADV_FREE pages to the head of
inactive LRU, so they can be reclaimed easily?
Yes this makes sense for pages living on the active LRU list. I
would preserve LRU ordering on the inactive list because there is
no good reason to make the operation more costly for inactive
pages. On the other hand having tons of to-be-freed pages on the
active list clearly sucks. Care to send a patch?
Considering anon pages are in active LRU first, it's likely
MADV_FREE pages are in active list. I'm curious why preserves the
order of inactive list.
Only before the first time MADV_FREE is called on those pages.

If a program repeatedly allocates and frees the same memory
region, not moving the MADV_FREE pages around in the LRU
several times can save some overhead.

- -- 
All rights reversed
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJU1QqHAAoJEM553pKExN6DTXoH/3bS+VhdIm1EpOc8OOFtBHvd
T63DHObtOY1FOog48CtgvUCfo7Q+g1aG/9hz7lJNP1G26B3+LNszM9OtE/9QrYUH
uzmuWvFL7l0W0qen/WsyO0RcyqN+0mEXvNVqynTmJJu8qAG0p5WsjA6L5Penzj//
tnBmn5xb1h3COjDZkHsxBfkpfCpNq5dm88K6B3nApHz4QhfcviKefczsrWdZ/bBc
2uMnlIebKY1Oq9MDHsg8p/b3lIHzwAf0xGSvGLN0YfzDPzlqBMbxSbVubYEA9EaU
OiS1XqRp8okeGgrxsRAb/F8wPgClpce+h0E5xpyUuew2rlD1OmciX6iIDcE5Zrk=
=KUng
-----END PGP SIGNATURE-----

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help