This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author hunteke
Recipients hunteke
Date 2010-09-24.17:52:37
SpamBayes Score 2.5051338e-07
Marked as misclassified No
Message-id <1285350759.4.0.118127426287.issue9942@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2010-09-24 17:52:39huntekesetrecipients: + hunteke
2010-09-24 17:52:39huntekesetmessageid: <1285350759.4.0.118127426287.issue9942@psf.upfronthosting.co.za>
2010-09-24 17:52:38huntekelinkissue9942 messages
2010-09-24 17:52:37huntekecreate