util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: L A Walsh <lkml@tlinx.org>
To: util-linux@vger.kernel.org
Subject: question about lsns.
Date: Thu, 20 Sep 2018 06:24:55 -0700	[thread overview]
Message-ID: <5BA39FA7.3070504@tlinx.org> (raw)

I came across lsns and decided to see what ns's it might list on my
system.

as my self,
>  lsns
        NS TYPE   NPROCS   PID USER COMMAND
4026531835 cgroup     21 22959 law  gvim prelink_dependencies
4026531836 pid        21 22959 law  gvim prelink_dependencies
4026531837 user       21 22959 law  gvim prelink_dependencies
4026531838 uts        21 22959 law  gvim prelink_dependencies
4026531839 ipc        21 22959 law  gvim prelink_dependencies
4026531840 mnt        21 22959 law  gvim prelink_dependencies
4026531992 net        21 22959 law  gvim prelink_dependencies

and as root:

# lsns
        NS TYPE   NPROCS PID USER COMMAND
4026531835 cgroup    429   1 root init [3]        
4026531836 pid       429   1 root init [3]        
4026531837 user      429   1 root init [3]        
4026531838 uts       429   1 root init [3]        
4026531839 ipc       429   1 root init [3]        
4026531840 mnt       428   1 root init [3]        
4026531860 mnt         1  82 root kdevtmpfs
4026531992 net       429   1 root init [3]

-----------------

To me this seems a bit odd as I don't recall doing and nsenter or creation
commands, though there may be some tucked away in some script or another.

But why these?

a gvim editor session (I hve several files up, but don't know if they are
all in the same ns.  It doesn't seem the lsns has a way to list what the
other procs are in the name space (might be useful rather than going
and looking at the hierarchy).

And for root....an init cmd that seems to have a nproc value rough equal
to the number of procs running.

Not sure what NPROCS means...a ps -ef|grep law shows 81 procs, but weeding
out the ones that appear to be threads, I get 35, so not sure where
nprocs gets 21.

Is this a result of auto-grouping by the the scheduler?
Seems odd it points at an edit session as the command that is
in the ns and not a bash or ssh login...

Thanks!
-l

             reply	other threads:[~2018-09-20 19:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-20 13:24 L A Walsh [this message]
2018-09-24 13:02 ` question about lsns Karel Zak

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=5BA39FA7.3070504@tlinx.org \
    --to=lkml@tlinx.org \
    --cc=util-linux@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).