All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Josh Hunt <johunt@akamai.com>
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH iproute2-next] ss: add option to print socket information on one line
Date: Thu, 25 Apr 2019 15:59:51 -0700	[thread overview]
Message-ID: <20190425155951.26d91cc6@hermes.lan> (raw)
In-Reply-To: <1556227308-16057-1-git-send-email-johunt@akamai.com>

On Thu, 25 Apr 2019 17:21:48 -0400
Josh Hunt <johunt@akamai.com> wrote:

> Multi-line output in ss makes it difficult to search for things with
> grep. This new option will make it easier to find sockets matching
> certain criteria with simple grep commands.
> 
> Example without option:
> $ ss -emoitn
> State      Recv-Q Send-Q Local Address:Port               Peer Address:Port
> ESTAB      0      0      127.0.0.1:13265              127.0.0.1:36743               uid:1974 ino:48271 sk:1 <->
> 	 skmem:(r0,rb2227595,t0,tb2626560,f0,w0,o0,bl0,d0) ts sack reno wscale:7,7 rto:211 rtt:10.245/16.616 ato:40 mss:65483 cwnd:10 bytes_acked:41865496 bytes_received:21580440 segs_out:242496 segs_in:351446 data_segs_out:242495 data_segs_in:242495 send 511.3Mbps lastsnd:2383 lastrcv:2383 lastack:2342 pacing_rate 1022.6Mbps rcv_rtt:92427.6 rcv_space:43725 minrtt:0.007
> 
> Example with new option:
> $ ss -emoitnO
> State    Recv-Q Send-Q          Local Address:Port            Peer Address:Port
> ESTAB    0      0                   127.0.0.1:13265              127.0.0.1:36743 uid:1974 ino:48271 sk:1 <-> skmem:(r0,rb2227595,t0,tb2626560,f0,w0,o0,bl0,d0) ts sack reno wscale:7,7 rto:211 rtt:10.067/16.429 ato:40 mss:65483 pmtu:65535 rcvmss:536 advmss:65483 cwnd:10 bytes_sent:41868244 bytes_acked:41868244 bytes_received:21581866 segs_out:242512 segs_in:351469 data_segs_out:242511 data_segs_in:242511 send 520.4Mbps lastsnd:14355 lastrcv:14355 lastack:14314 pacing_rate 1040.7Mbps delivery_rate 74837.7Mbps delivered:242512 app_limited busy:1861946ms rcv_rtt:92427.6 rcv_space:43725 rcv_ssthresh:43690 minrtt:0.007
> 
> Signed-off-by: Josh Hunt <johunt@akamai.com>

I agree with this, but probably time to give ss a json output as well.


  reply	other threads:[~2019-04-25 23:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-25 21:21 [PATCH iproute2-next] ss: add option to print socket information on one line Josh Hunt
2019-04-25 22:59 ` Stephen Hemminger [this message]
2019-04-25 23:50   ` Josh Hunt
2019-04-25 23:53   ` Eric Dumazet
2019-04-30 18:30 ` David Ahern
2019-04-30 18:31   ` Josh Hunt
2019-04-30 18:55     ` Josh Hunt
2019-04-30 19:41       ` David Ahern
2019-04-30 19:42         ` Josh Hunt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190425155951.26d91cc6@hermes.lan \
    --to=stephen@networkplumber.org \
    --cc=johunt@akamai.com \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.