Hi Martin,
Please take the test with a grain of salt. It originates back from older 
releases 1.4 and nfcapd files changed in between.
The test will be most likely removed in 1.6.11. The reason for that is, that 
with a decent server today, compression
should be used all the time. Compression was a matter of balance of CPU and 
I/O. With slow I/O disk the CPU compressed
faster, with a slow CPU I/O was faster than compression.

If a file is compressed or not can be determined with ./nfdump -v nfcapd.xxxxx
To look at the effect compress/uncompress a file: ./nfdump -j nfcapd.xxxx
and look at the file size afterwards. nfdump uses minilzo which comes with the 
code, so no zlib is required.

Hope this explains compression.

        - Peter




On 7/23/13 W30 18:39, Martin Brault wrote:
> Hello,
> 
> I am just getting familiar with nfdump/nfsen and I can't seem to get 
> compression working.  The commandline seems to imply it is toggled on;
> 
>   /usr/local/bin/nfcapd -w -D -p 4441 -u apache -g apache -B 200000 -S 1 
> -P /tmp/nfsen/var/run/p4441.pid -z -I rtr11 -l 
> /tmp/nfsen/profiles-data/live/rtr1
> 
> -z is in the commandline.  However when I check the files:
> 
> /root/nfsen/nfdump-1.6.10/bin/nftest nfcapd.201307231205
> Common record size is 28
> ALIGN BYTES: 7
> aligned: 3 -> 8
> 100 write cycles, with size 1048392 bytes
> Uncompressed write time: 0.148834s size: 1048392
> Compressed write time  : 1.170007s size: 1048404
> Ratio                  : 1:1.000
> You should run nfcapd without compression
> 
> 
> Why is the ratio always 1:1?
> 
> I am on CentOS6.4.  I checked the configure file and it seems to only 
> check for zlib if --enable-ftconv is set.  Is this normal?
> 
> Thanks,
> 
> M.
> 
> 
> ------------------------------------------------------------------------------
> See everything from the browser to the database with AppDynamics
> Get end-to-end visibility with application monitoring from AppDynamics
> Isolate bottlenecks and diagnose root cause in seconds.
> Start your free trial of AppDynamics Pro today!
> http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
> _______________________________________________
> Nfsen-discuss mailing list
> Nfsen-discuss@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nfsen-discuss
> 

-- 
--
Be nice to your netflow data

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Nfsen-discuss mailing list
Nfsen-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nfsen-discuss

Reply via email to