Skip navigation.
Home
The QNX Community Portal

View topic - Need a QNX utility to know the CPU Percentage usage

Need a QNX utility to know the CPU Percentage usage

For the old QNX2 and QNX4 RTOS

Need a QNX utility to know the CPU Percentage usage

Postby bhaskara-r » Thu Jul 16, 2015 7:13 am

I want to know whether any QNX utility is availabe to Know the CPU Percentage in the Embedded device which is running the QNX OS.

Please let me know if it is available.
bhaskara-r
Active Member
 
Posts: 44
Joined: Tue Jul 22, 2014 10:55 am

Re: Need a QNX utility to know the CPU Percentage usage

Postby Tim » Thu Jul 16, 2015 1:26 pm

hogs

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Re: Need a QNX utility to know the CPU Percentage usage

Postby maschoen » Thu Jul 16, 2015 5:35 pm

I think it should be pointed out that hogs lists the cpu per process. It does not combine cpu for "os" processes, which under QNX is somewhat arbitrary anyway, and it does not list the cpu for the kernel, although you could argue that the kernel is always executing on behalf of a process.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Need a QNX utility to know the CPU Percentage usage

Postby Tim » Thu Jul 16, 2015 9:08 pm

Do you know how hogs handles multi-core? I think the % listed is for all cores (ie if a process is listed as using 50% and you have a dual core machine your process may really be using 100% of one core) but I've never actually confirmed this.

Tim
Tim
Senior Member
 
Posts: 1388
Joined: Wed Mar 10, 2004 12:28 am

Re: Need a QNX utility to know the CPU Percentage usage

Postby maschoen » Thu Jul 16, 2015 9:22 pm

I confirmed your suspicion. On my quad server I started a hard loop program and it shows up as 25% with hogs.
maschoen
QNX Master
 
Posts: 2640
Joined: Wed Jun 25, 2003 5:18 pm

Re: Need a QNX utility to know the CPU Percentage usage

Postby Thunderblade » Mon Jul 20, 2015 10:48 am

I prefer 'top', or, when it needs to be really accurate, I use the System Profiler / tracelogger.
Thunderblade
Senior Member
 
Posts: 487
Joined: Thu Apr 07, 2005 11:52 am

Re: Need a QNX utility to know the CPU Percentage usage

Postby Linkman » Thu Sep 22, 2016 4:53 pm

A free version for QNX 4 called "sysmon" used to be available at www.parse.com. I do not know where you can obtain it now.
Linkman
New Member
 
Posts: 7
Joined: Tue Sep 20, 2016 11:52 am


Return to QNX2 and QNX4

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests