Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing ps #10

Open
i4ki opened this issue Sep 24, 2016 · 2 comments
Open

missing ps #10

i4ki opened this issue Sep 24, 2016 · 2 comments
Assignees

Comments

@i4ki
Copy link
Collaborator

i4ki commented Sep 24, 2016

No description provided.

@i4ki
Copy link
Collaborator Author

i4ki commented Sep 24, 2016

What about the flags?

I hate the fact that ps require lots of flags to be useful:

λ> ps
  PID TTY          TIME CMD
 1721 pts/1    00:00:00 nash
 3042 pts/1    00:00:00 ps

POSIX ps without arguments list processes started by current user and current shell.... No one wants this as default.. Other problem is the lack of symmetry/consistency (ps -aux != ps aux, ps -e == ps -A, etc)

What do you guys think of make ps return useful info by default too? Plan9 ps works this way: http://man.cat-v.org/plan_9_2nd_ed/1/ps

Below are the infos I think are useful to be default:

  • user
  • pid
  • ppid
  • %cpu
  • %mem
  • rss (Resident Set Size)
  • vcz (Virtual Memory Size)
  • cmd

Example:

λ> ps
user    pid     ppid    %cpu    %mem    vsz     rss     cmd
i4k     66666   666     13.5    20.0    53008   3000    -nashd- -d /tmp/nashd.sock

In addition, printing the pid namespace could be useful too, but it's a intricate logic to get this correct and few peoples are interested in it. Maybe add an option for that.

@lborguetti What is your opinion about good values for default? I know you're the master of ps options, I'm sure you have something to say.

@katcipis
Copy link
Collaborator

I always use ps -ef, because it is pratical. I agree that showing only the shell processes are useless as hell...never used like that and know no one that does :-)

This was referenced Oct 2, 2016
@i4ki i4ki self-assigned this Jan 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants