allocating 14KB memory per packet compression/decompression results in vm_fault

Giorgos Keramidas keramida at linux.gr
Thu Nov 3 06:57:46 PST 2005


On 2005-11-02 18:39, kamal kc <kamal_ckk at yahoo.com> wrote:
> dear everybody,
>
> i am trying to compress/decompress ip packets.
> for this i have implemented the adaptive lzw compression.
> i put the code in the ip_output.c and do my compression/decompression
> just before the if_output() function call so that i won't interfere with
> the ip processing of the kernel.
>
> for my compression/decompression i use string tables and temporary
>  buffers which take about 14KB of memory per packet.

If you're allocating 14 KB of data just to send (approximately) 1.4 KB
and then you throw away the 14 KB immediately, it sounds terrible.



More information about the freebsd-hackers mailing list