baweaver / psutil

Automatically exported from code.google.com/p/psutil
Other
0 stars 0 forks source link

Expose rx/tx queue length instead of throwing it away #269

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
The rx/tx queue length is currently thrown away, but it might be helpful to 
return it for certain types of applications.

http://code.google.com/p/psutil/source/browse/trunk/psutil/_pslinux.py?r=1313#78
5

The next item after status is 'tx_queue:rx_queue'.

Original issue reported on code.google.com by sidnei.d...@gmail.com on 31 May 2012 at 8:02

GoogleCodeExporter commented 8 years ago
Point is that's not portable across platforms.
Out of curiosity, in what circumstances that can be useful?

Original comment by g.rodola on 2 Jun 2012 at 1:19

GoogleCodeExporter commented 8 years ago
There's already precedent for non-portable things in get_cpu_times(), which 
returns iowait for linux but not for anything else.

My use case for it is to monitor a web application to make sure it's able to 
keep up with incoming requests, keeping the rx queue to a minimal.

Original comment by sidnei.d...@gmail.com on 2 Jun 2012 at 3:10

GoogleCodeExporter commented 8 years ago
I think this is reasonable.

Original comment by g.rodola on 12 Dec 2012 at 3:41