LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-02-2017, 12:50 PM   #16
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Post


Quote:
Originally Posted by dedec0 View Post
Do you know where would I find the source code for top? Or which package is it part of? (which would help me to find the source code in the app repository)

[...]

No clue to where the project is...
Found something... debianish distributions have 'top' in the procps package.

My procps package has some more info:

Quote:
Estes são utilitários para navegar no sistema de arquivos /proc, que não é
um sistema de arquivos de verdade mas sim uma forma do núcleo ("kernel")
fornecer informações sobre o estado das entradas em sua tabela de
processos. (e.g. rodando, parado ou "zumbi"). São fornecidos tanto
utilitários em linha de comando quanto de tela cheia. É necessário ncurses
para utilitários em tela cheia. Mais informações podem ser encontradas no
site web do procps http://procps.sf.net/

Este pacote inclui os seguintes utilitários: top, uptime, tload, free,
vmstat, watch, skill, pmap, pgrep, slabtop e pwdx.
 
Old 01-02-2017, 12:53 PM   #17
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by The EzekielProject View Post
Check here for source code
Thank you! But that is a surprise! I just found /usr/bin/top in the procps package here (see my previous post).

Which of these two should be chosen? Why?
 
Old 01-02-2017, 12:58 PM   #18
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quoting http://procps.sourceforge.net/ now:

Quote:
Procps - The /proc file system utilities

procps is the package that has a bunch of small useful utilities that give information about processes using the /proc filesystem. The package includes the programs ps, top, vmstat, w, kill, free, slabtop, and skill.

Version 3 includes NPTL thread support, a rewritten top, many bug fixes, performance improvements, and new features.

The latest release is procps-3.2.8.tar.gz. See the download page for past releases.

[...]
3.2.8 that is the top version I have!

But...

Quote:
[...]

Last-changed date last changed: Sun May 10 2009
:'(
 
Old 01-02-2017, 01:00 PM   #19
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Debian repository points to a different page for the package procps:

https://packages.debian.org/jessie/procps

https://gitorious.org/procps => 404 :-\ grrrrrr
 
Old 01-02-2017, 01:03 PM   #20
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Do you mean which should you choose between just top or procps? I have procps installed because they are useful at times
 
Old 01-02-2017, 01:04 PM   #21
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
(...)

https://packages.debian.org/stretch/procps

and

https://packages.debian.org/sid/procps

point to a different project page:

https://gitlab.com/procps-ng/procps

Anyway, I will downloaded the source from one of these two packages here, hoping for no problems to compile...
 
Old 01-02-2017, 01:10 PM   #22
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by The EzekielProject View Post
Do you mean which should you choose between just top or procps? I have procps installed because they are useful at times
I meant to ask which project to use: procps.sf.net (for the package I have top installed with) or that "unix-top" page you pointed to.

I have procps installed because it came with Ubuntu (I surely guess 'top' was not something added by other packages I installed. It was here before all of them).

But procps project page seems to be static since 2009? I have its last version! Skim my last posts... maybe you did not read them yet, since they were made quickly...
 
Old 01-02-2017, 01:27 PM   #23
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Question

Quote:
Originally Posted by Habitual View Post
The above discussion says the version is 3.2.8, same as mine. Great! But bad... does not solve. Quote that discussion, some answers below:

Quote:
[...]

--
On my linux system, top (procps-ng version 3.3.9) has an -o switch:
-o :Override-sort-field as: -o fieldname

[...]

So, top -o RES starts top sorted by resident memory size.
--

[...]
I do not have that switch but, as otherwise said, my version is 3.2.8, the last version of procps - in the project page, I suppose!

But why is that "procps-ng"? What is that ng for? Is ng some localization I have not seen before?
 
Old 01-02-2017, 01:34 PM   #24
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by Habitual View Post
Another quote from that discussion:

Quote:
[...]
--
FYI, there are differing versions of top on various Linux distros, so you might want to make your A more specific. – slm♦ Nov 11 '14 at 15:58
--
[...]
Top (and a few other utilities) seems to be a nice mess...

I think I will just download the source code for my top and add a command line switch to give it another rc file. I imagine that should be easy enough... other similar suggestions are welcome!
 
Old 01-02-2017, 01:38 PM   #25
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Ah. Jessie (stable), Sid (unstable) and Stretch (testing) are just different releases of debian.
I found the link to the source code on sourceforge via wikipedia. Idk much about your system so it's hard to say which would be appropriate for you. I would go whatever route is easiest to obtain it from.

That link to gitlab looked recent As far as the differences between procps and procps-ng, this thread might be of interest

Last edited by TheEzekielProject; 01-02-2017 at 01:43 PM.
 
1 members found this post helpful.
Old 01-02-2017, 01:45 PM   #26
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by The EzekielProject View Post
Ah. Jessie (stable), Sid (unstable) and Stretch (testing) are just different releases of debian.
I found the link to the source code on sourceforge via wikipedia. Idk much about your system so it's hard to say which would be appropriate for you. I would go whatever route is easiest to obtain it from.

That link to gitlab looked recent

I knew they were different releases. But I could not guess, without searching for it, which were what. Thank you! (=

Ubuntu used (or created) a very simple but effective idea: release names have alphabetical order - great!

I opened the gitlab page before making that post, it is active. I will compare the source got from there to the source of my system package. If compiling steps are easy and most (or all, I would wish) the same, great.
 
Old 01-02-2017, 01:51 PM   #27
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Good luck!
 
Old 01-02-2017, 01:54 PM   #28
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by The EzekielProject View Post
Check here for source code
https://sourceforge.net/projects/unixtop/

surely is *not* the right top. Look at its files and dates:

Code:
 top-3.8beta1	2008-05-07		 258	

 top-3.7	2008-02-27		 1	

 top-3.6.1	2007-04-20		 1	

 top-3.6	2006-04-08		 2	

 top-3.5.1	2004-11-29		 2
Different project, same name, and this one has very little use, as we see (the third column is downloads/week in SF). Anyone here thinks differently?
 
Old 01-02-2017, 02:03 PM   #29
dedec0
Senior Member
 
Registered: May 2007
Posts: 1,157

Original Poster
Rep: Reputation: 43
Quote:
Originally Posted by The EzekielProject View Post

That link to gitlab looked recent As far as the differences between procps and procps-ng, this thread might be of interest
The thread looks great. Then it points to a file:

https://gitorious.org/procps/procps/blobs/master/NEWS

Guess what! 404...

The next post point to something better, though:

https://lists.archlinux.org/pipermai...il/022845.html

Which is written, in an Arch Linux mailing list:

Quote:
[arch-dev-public] Moving from procps to procps-ng?
Eric Bélanger snowmaniscool at gmail.com
Mon Apr 23 20:29:40 EDT 2012

Previous message: [arch-dev-public] Integrity Check x86_64: core, extra, community, multilib 20-04-2012
Next message: [arch-dev-public] Moving from procps to procps-ng?
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,

The procps project didn't had any new release for a while and the
current package use a dozen of patches to fix miscellenaous things.
I'm thinking about switching to procps-ng[1]. Procps-ng is a fork of
procps by Debian, Fedora and openSUSE. Gentoo is also using procps-ng
(although, like Debian, the package is still named procps).

I also intend to replace the home made sysctl.conf that we currently
provide by the upstream version of that file.

Any comments, objections?

Eric

[1] http://gitorious.org/procps/

Previous message: [arch-dev-public] Integrity Check x86_64: core, extra, community, multilib 20-04-2012
Next message: [arch-dev-public] Moving from procps to procps-ng?
Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The mess grows a bit... O,o
 
Old 01-02-2017, 02:34 PM   #30
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 664

Rep: Reputation: 190Reputation: 190
Yes, I noticed those dates and the seemingly low number of downloads, but I'd bet most of the time top is installed from the procps package and that respository seems to be a standalone for top. Also notice on the main page "Last Update: 2016-02-03" so it does seem to be maintained. I also saw that first link was dead but the second was active and still seemed relevant. If you mentioned before I must have missed it, but what happens if you try, for instance:
Code:
 top -o %MEM
?

Last edited by TheEzekielProject; 01-02-2017 at 02:39 PM.
 
  


Reply

Tags
command-line top


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
system memory info question shown by top command hellolqs Linux - Embedded & Single-board computer 3 06-01-2016 05:43 AM
[SOLVED] Sort certain field but preserve other field data akeka Programming 2 05-21-2012 04:01 PM
Can I use GNU sort to sort one field in order, another in reverse? zombieite Linux - Newbie 4 04-27-2009 12:23 AM
TOP command: calculation of memory usage samiralmousawi Linux - Server 7 07-29-2008 03:16 PM
Sort File by Field - but with a Twist! ;) moo-cow Programming 8 06-12-2006 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration