New submission from Kevin Hunter <hunt...@earlham.edu>:

Should Python enable a way for folks to inform the OS of MADV_MERGEABLE memory?

I can't speak for other OSs, but Linux added the ability for processes to 
inform the kernel that they have memory that will likely not change for a while 
in 2.6.32.  This is done through the madvise syscall with MADV_MERGEABLE.

http://www.kernel.org/doc/Documentation/vm/ksm.txt

After initial conversations in IRC, it was suggested that this would be 
difficult in the Python layer, but that the OS doesn't care what byte page it's 
passed as "mergeable".  Thus when I, as an application programmer, know that I 
have some objects that will be around "for awhile", and that won't change, I 
can let the OS know that it might be beneficial to merge them.

I suggest this might be a library because it may only be useful for certain 
projects.

----------
components: Library (Lib)
messages: 117317
nosy: hunteke
priority: normal
severity: normal
status: open
title: Allow memory sections to be OS MERGEABLE
type: feature request

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9942>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to