in reply to Re: get system info using perl
in thread get system info using perl
Thanks guys for your replies. I got a reply from comp.lang.perl.misc which pointed out the following 2 modules:
1.Filesys::Df
2. Linux::Sysinfo
They are pretty easy to use, fast, and provide many values. I know that my daemon is not going to bomb the other one once in a second. But I just wanted to know.
These modules really do pump up the speed from okay to burn-the-road. Just to compare system call and Filesys::Df, I wrote a small perl program which calls getting free disk using system call to df and using the module. I profiled them by running them around 1000 times and this was the output of dprofpp:
|
|---|