memory pool, rfc

Dan Nelson dnelson at allantgroup.com
Wed Oct 31 19:23:25 PDT 2007


In the last episode (Nov 01), Eduardo Morras said:
> I have some free time and want to do an memory pool. The idea is to
> have a memory zone of N KB (or several MB) compressed in memory. I
> have fast compression algorithms now that can release under BSD
> licence that are faster than hd i/o, so it take less
> compress/decompress a memory zone than read/write it to disk. I don't
> know if it already exist for FreeBSD, so if it's already done i'll
> try to improve it.
[...]
> For what can be used?
> 
> - Memory pools in applications (like malloc)
> - Ram disks
> - Disk Cache (permit bigger disk cache)
> - 'On the fly' filesystem compression (and it takes less read/write 
>   compressed data than non-compressed)

zfs already has modular compression algorithms; it would be rather easy
to add a mozule for your method and compare it to the existing gzip and
lzjb algorithms.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-hackers mailing list