Thanks for the tips.
Sorry for the previous reply. I accidently hit 'Submit' instead of 'Preview'.
SO, you don't like this output:
- Code: Select all
load averages: 1.73, 1.62, 1.16 08:35:05
14 processes: 11 sleeping, 1 running, 1 zombie, 1 on cpu
Cpu states: 92.1% idle, 4.6% user, 3.3% kernel, 0.0% wait, 0.0% nice
Memory: 5192K mem avail, 32M free, 43M locked, 375M swap free
PID PGRP USERNAME PRI NICE SIZE STATE TIME WCPU CPU COMMAND
166 144 tlong 16 -20 12M run 3646.5 0.50% 0.00%
271 271 tlong 31 -4 232K cpu 6258.1 0.86% 0.00% ?p
167 144 tlong -25 -20 13M sleep 3649.5 0.50% 0.00%
137 136 root 1 0 184K sleep 6270.9 0.86% 0.00% n
168 168 root 1 0 176K sleep 2653.3 0.36% 0.00% /?N?
169 169 tlong 14 -4 536K sleep 5469.5 0.75% 0.00% n?? S/?N?
1 0 root 14 0 128K sleep 1340.6 0.18% 0.00% S=l????=l????/
144 144 tlong 5 0 76K sleep 2519.1 0.35% 0.00% ?2м?
134 134 root 1 0 208K sleep ??? -0.73% 0.00% n
139 139 root 1 0 192K sleep 3663.5 0.50% 0.00% !@
131 131 root 1 0 164K sleep 6403.1 0.88% 0.00%
126 125 root 1 0 68K sleep 2439.8 0.34% 0.00% ?O?
11 10 root -25 4 136K sleep ??? -0.63% 0.00% ??=@??-l?<??-l
and would prefer this:
- Code: Select all
load averages: 1.31, 1.51, 1.16 08:36:09
14 processes: 12 sleeping, 1 zombie, 1 on cpu
Cpu states: 88.4% idle, 7.7% user, 3.9% kernel, 0.0% wait, 0.0% nice
Memory: 5192K mem avail, 32M free, 43M locked, 375M swap free
PID PGRP USERNAME PRI NICE SIZE STATE TIME WCPU CPU COMMAND
166 144 tlong -25 -20 12M sleep 2:01 0.61% 7.07% startmac
272 272 tlong 31 -4 192K cpu 0:01 0.22% 2.57% top
167 144 tlong -25 -20 13M sleep 0:21 0.11% 1.29% CommandShell
168 168 root 1 0 176K sleep 0:36 0.06% 0.64% in.telnetd
137 136 root 1 0 184K sleep 0:00 0.00% 0.00% in.routed
169 169 tlong 14 -4 536K sleep 0:06 0.00% 0.00% bash
1 0 root 14 0 128K sleep 0:01 0.00% 0.00% init
144 144 tlong 5 0 76K sleep 0:06 0.00% 0.00% sh
134 134 root 1 0 208K sleep 0:00 0.00% 0.00% cron
139 139 root 1 0 192K sleep 0:00 0.00% 0.00% inetd
131 131 root 1 0 164K sleep 0:00 0.00% 0.00% portmap
126 125 root 1 0 68K sleep 0:00 0.00% 0.00% errdemon
11 10 root -25 4 136K sleep 0:00 0.00% 0.00% fidd
?
Here's what I did. I found the code that did all the formating. It is in machine.c which is a symlink to machine/m_aux31.c in
our case. I notices that all the things properly formatted are based off of /dev/kmem and the improperly formatted ones are
based on /dev/mem so I figured that A/UX didn't maintain /dev/mem the same way other unixes do. So as a trial, I inserted, at 144, the line
- Code: Select all
mem = kmem;
recompiled and tested. Output looked great. I never went back to do more checking or code clean up. I suppose someone should
incorporate the fix so that it doesn't get lost.