Denis Oliver Kropp via CVS schrieb: > CVSROOT: /cvs/directfb > Module name: DirectFB > Changes by: dok 20070122 04:06:11 > > Modified files: > lib/fusion/shm : heap.c > > Log message: > That's birthday and christmas at once: Glorious MADV_REMOVE! I found you! > > If available, the code for freeing blocks in the heap uses > > madvise( ADDRESS(block), blocks * BLOCKSIZE, MADV_REMOVE ) > > to punch a whole in the tmpfs file (loosing the data) to really free > the associated physical RAM. > > You can see the difference in 'ls -l' and 'df'.
This needs 2.6.19.2 to work stable. Added in 2.6.17 (I think) this feature caused kernel crashes here (2.6.18.3). Maybe we should check the kernel version at runtime. http://www.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fv2.6%2Fpatch-2.6.19.2.bz2;z=79 -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
