cat /proc/user_beancounters |egrep 'tcp(snd|rcv)buf'| perl -e 'my$rcv=0; my $snd=0; for(<>){my @data=split/\s+/; if ($data[1] eq 'tcprcvbuf') { $rcv+=$data[2] } else { $snd+=$data[2]}}; $snd=int $snd/1024**2; $rcv=int $rcv/1024**2; print "snd buffers: $snd MB rcv buffer: $rcv MB\n"'
snd buffers: 538 MB rcv buffer: 306 MB
snd buffers: 538 MB rcv buffer: 306 MB
No comments :
Post a Comment
Note: only a member of this blog may post a comment.