[net.unix-wizards] Help! `ps' is going flakey on me!

root@trwatf.UUCP (Lord Frith) (07/25/85)

`ps' is giving me messages like "no room in text table" and "ps: error
reading ecmx from /dev/kmem"  and "error reading namelist." In single
user mode it simply prints the banner for `ps' like so...

"PID TT STAT  TIME COMMAND"

but no shows me no processes!

Does this sound like a familiar problem?  I did add some new disks and
recompile vmunix to use those disks but other than that I can't see what
the problem would be.  Vmunix is intact in the root.
-- 

UUCP: ...{decvax,ihnp4,allegra}!seismo!trwatf!root	- Lord Frith
ARPA: trwatf!root@SEISMO

"There is not a single McDonald's in Garrett County"

rcj@burl.UUCP (Curtis Jackson) (07/29/85)

In article <1056@trwatf.UUCP> root@trwatf.UUCP (Lord Frith) writes:
>
>`ps' is giving me messages like "no room in text table" and "ps: error
>reading ecmx from /dev/kmem"  and "error reading namelist." In single
>user mode it simply prints the banner for `ps' like so...
>
>"PID TT STAT  TIME COMMAND"
>
I had the "error reading namelist" message and got just the header, so
I poked through the code and found out that after it prints the header
it is looking for the file /etc/ps_data -- which was scrogged.  I just
removed the file on a whim and ps recreated it correctly next time
it was run (of course it took much longer).  Now I have modified
out /etc/rc to remove /etc/ps_data unconditionally on system startup
so it will be recreated; the problem has not recurred.

P.S.:  This is on Sys V, so your problem may be more involved.
-- 

The MAD Programmer -- 919-228-3313 (Cornet 291)
alias: Curtis Jackson	...![ ihnp4 ulysses cbosgd mgnetp ]!burl!rcj
			...![ ihnp4 cbosgd akgua masscomp ]!clyde!rcj

jack@boring.UUCP (08/05/85)

In article <1056@trwatf.UUCP> root@trwatf.UUCP (Lord Frith) writes:
>
>`ps' is giving me messages like "no room in text table" and "ps: error
>reading ecmx from /dev/kmem"  and "error reading namelist." In single
>user mode it simply prints the banner for `ps' like so...
>
>"PID TT STAT  TIME COMMAND"
>
You should have specified the system you used. On a V7 system,
this usually means that /unix is not the kernel you're running
at the moment, so 'ps' tries to read things from a running kernel
using an incorrect namelist.

Fix: move /unix to /oldunix, and your running kernel to /unix.
-- 
	Jack Jansen, jack@mcvax.UUCP
	The shell is my oyster.