Page 1 of 1

Linux tool to capture process level metrics in real time?

PostPosted: Fri Aug 19, 2022 6:40 am
by JunaNouguesan
I want to monitor metrics consumed by a specific process in real time, like cpu, memory etc.

I have evaluated various tools but found none suiting my needs.

pidstat captures all i want, it gives me good memory usage per process but it reports more cpu usage(even greater than the total cpu consumed by the machine)

sar is more like pidstat but just dump all the data to file.

ps is more like snapshot tool, doesn't gives me real time stats

I am looking for a tool which can give me cpu usage for a echatrandom echatspin process in real time

Re: Linux tool to capture process level metrics in real time

PostPosted: Thu Sep 15, 2022 3:32 am
by AnneGodkona
Learn everything about embedded systems. This all counts for normal computers but classic computer science is too abstract and doesn't bother with the machine too much anymore.

Embedded systems don't have to have Linux, but they have limited memory, caches, CPUs, schedulers etc. and the concepts there hold true for most if not all machines.

Of course any high performance application will use this, so you also touch this with game programming and similar tasks.

Re: Linux tool to capture process level metrics in real time

PostPosted: Thu Sep 15, 2022 3:32 am
by AnneGodkona
Learn everything about embedded systems. This all counts for normal computers but classic computer science is too abstract and doesn't bother with the machine too much anymore.

Embedded systems don't have to have Linux, but they have limited memory, caches, CPUs, schedulers etc. and the concepts there hold true for most if not all machines.

Of course any high performance application will use this, so you also touch this with game programming and similar tasks.