Thread (7 messages) 7 messages, 4 authors, 2011-08-07

Re: Hugepages for shm page cache (defrag)

From: <hidden>
Date: 2011-07-07 12:02:49

Possibly related (same subject, not in this thread)

On Wed, 06 Jul 2011 22:28:59 -0700, Andi Kleen wrote:
RadosA?aw Smogura [off-list ref] writes:
quoted
Hello,

This is may first try with Linux patch, so please do not blame me 
too much.
Actually I started with small idea to add MAP_HUGTLB for /dev/shm 
but it grew
up in something more like support for huge pages in page cache, but 
according
to documentation to submit alpha-work too, I decided to send this.
Shouldn't this be rather integrated with the normal transparent huge
pages? It seems odd to develop parallel infrastructure.

-Andi
It's not quite good to ask me about this, as I'm starting hacker, but I 
think it should be treated as counterpart for page cache, and actually I 
got few "collisions" with THP.

High level design will probably be the same (e.g. I use defrag_, THP 
uses collapse_ for creating huge page), but in contrast I try to operate 
on page cache, so in some way file system must be huge page aware (shm 
fs is not, as it can move page from page cache to swap cache - it may 
silently fragment de-fragmented areas).

I put some requirements for work, e. g. mapping file as huge should not 
affect previous or future, even fancy, non huge mappings, both callers 
should succeed and get this what they asked for.

Of course I think how to make it more "transparent" without need of 
file system support, but I suppose it may be dead-corner.

I still want to emphasise it's really alpha version.

Regards,
Radek

--
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/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
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