Skip to contentSkip to conversation

WCHAN on R3000

DISCUSSION Kevin D. Kissell 4 participants 5 messages Jan 30, 2000 – Jan 31, 2000 MIPS

lore
Share & tools
lore
#0 lore raw

Note, however, that the incident below happened
on an R4000 platform, not an R3K. It's probably
more significant that it was on a DECstation, thus a little-endian platform. Which set of binaries are
you running? From your ps output, I don't think
they are the same as I run, and I don't see this
behaviour on my little-endian system. Most of
the fixes for little-endian kernels that we've made at MIPS have found their way into the SGI repository, but one may have been missed, or we may have an as-yet-undiscovered bug on our hands.

Why on earth would ps be doing a floating point conversion in the course of displaying wchan, anyway???

Kevin K.
__

Kevin D. Kissell
MIPS Technologies European Architecture Lab [email protected]
Tel. +33.4.78.38.70.67
FAX. +33.4.78.38.70.68

-----Original Message-----
From: Florian Lohoff <[email protected]>
To: Ralf Baechle <[email protected]>
Cc: [email protected] <[email protected]>; [email protected] <[email protected]>; [email protected] <[email protected]>
Date: Sunday, January 30, 2000 12:16 AM
Subject: Re: WCHAN on R3000

Quoted 49 lines · Ralf Baechle
Quoted 4 lines

I've got bugreports which looks like get_wchan() is buggy. For my machines things look ok, so I assume only R3000 machines might be affected. Anybody seen the message ``Bug in get_wchan''? Does the WCHAN column of ``ps axl'' look sane?

I think i already reported this ..

------[dmesg output]------------------------------
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Bug in get_wchan
Setting flush to zero for dpkg-source.
Unimplemented exception for insn 4620a0a4 at 0x0046f084 in dpkg-source. Should send SIGFPE to dpkg-source
Setting flush to zero for dpkg-source.
Unimplemented exception for insn 4620a0a4 at 0x0046f084 in dpkg-source. Should send SIGFPE to dpkg-source
Setting flush to zero for dpkg-source.
Unimplemented exception for insn 4620a0a4 at 0x0046f084 in dpkg-source. Should send SIGFPE to dpkg-source
------------------------------------------

------------------------------------------

(root@repeat)~# cat /proc/cpuinfo
cpu                     : MIPS
cpu model               : R4000SC V3.0
system type             : Digital DECstation 5000/1xx
BogoMIPS                : 49.81
byteorder               : little endian
unaligned accesses      : 0
wait instruction        : no
microsecond timers      : yes
extra interrupt vector  : no
hardware watchpoint     : yes
VCED exceptions         : 750604
VCEI exceptions         : 4523546
(root@repeat)~# uname -a
Linux repeat 2.3.21 #1 Tue Jan 4 18:39:20 GMT 2000 mips unknown
------------------------------------

I dont know if you call this "sane" ...

Quoted 7 lines

-------------------------------

(root@repeat)~# ps axl
Unknown HZ value! (0) Assume 100.
 F   UID   PID  PPID PRI  NI   VSZ  RSS  WCHAN STAT TTY        TIME COMMAND
 100     0     1     0   0   0  1244  472  5a748 S    ?          0:15 init
 040     0     2     1   0   0     0    0  5a748 SW   ?          0:01 [kswapd]
 040     0     3     1   0   0     0    0  5a748 SW   ?          0:01

[kflushd]

Quoted 1 line

140 0 105 1 0 0 3772 828 5a6e0 S ? 0:24

/usr/sbin/s

Quoted 4 lines
 140     0   113     1   0   0  1556  536  5a6e0 S    ?          0:04 syslogd
 140     0   120     1   0   0  1264  472  5ebb0 S    ?          0:00 klogd
 140     0   129     1   0   0  1524  468  5a6e0 S    ?          0:00 inetd
 140     0   142     1   0   0  1192  280  5a748 S    ?          0:12 update

(bdf

Quoted 1 line

100 0 300 1 0 0 2612 720 5a748 S ? 0:07

/usr/lib/po

Quoted 1 line

100 502 302 300 0 0 2716 824 5a748 S ? 0:00

qmgr -l -t

Quoted 1 line

100 0 17438 1 0 0 1624 584 5a748 S ? 0:00

/sbin/mgett

Quoted 1 line

100 502 17439 300 0 0 2648 688 5a748 S ? 0:00

pickup -l -

Quoted 1 line

140 0 17442 105 0 0 6080 1452 5a748 S ? 0:01

/usr/sbin/s

Quoted 10 lines
 100     0 17444 17442   0   0  3232 1324  64a2c S    ttyp0      0:01 -bash
 100     0 17452 17444   0   0  3028  728      - R    ttyp0      0:00 ps axl

-------------------------------

Flo
--
Florian Lohoff [email protected] +49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and more idiot-proof systems and nature producing bigger and better idiots."

#1 lore raw
Quoted 12 lines · Kevin D. Kissell

Note, however, that the incident below happened
on an R4000 platform, not an R3K. It's probably
more significant that it was on a DECstation, thus a little-endian platform. Which set of binaries are
you running? From your ps output, I don't think
they are the same as I run, and I don't see this
behaviour on my little-endian system. Most of
the fixes for little-endian kernels that we've made at MIPS have found their way into the SGI repository, but one may have been missed, or we may have an as-yet-undiscovered bug on our hands.

Quoted 3 lines

Why on earth would ps be doing a floating point conversion in the course of displaying wchan, anyway???

The binariers are homebrewed - Debian potato source package.

The system is based on the decroot something + a lot debian packages i built myself ...

(root@repeat)~# ps -V
Unknown HZ value! (0) Assume 100.
procps version 2.0.3
(root@repeat)~#

Flo

Signature · 3 lines
Florian Lohoff		[email protected]		      	+49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."
#2 lore raw
Quoted 4 lines · Florian Lohoff
(root@repeat)~# ps -V
Unknown HZ value! (0) Assume 100.
procps version 2.0.3
(root@repeat)~#

Can you track down why this one happens? It doesn't happen with the stock Redhat procps thing which I'm using, whatever version that is.

Ralf

#3 lore raw
In reply to Kevin D. Kissell
Quoted 4 lines · Kevin D. Kissell

Note, however, that the incident below happened
on an R4000 platform, not an R3K. It's probably
more significant that it was on a DECstation, thus a little-endian platform.

More specific the DECstation platform.

Quoted 2 lines
Quoted 2 lines
(root@repeat)~# ps axl
Unknown HZ value! (0) Assume 100.

The HZ_TO_STD problem Ralf asked to fix caused by a overhaul of fs/proc/array.c, I'm working on a patch.

Regards,
Richard

#4 lore raw
In reply to Kevin D. Kissell
Quoted 3 lines · Kevin D. Kissell

Why on earth would ps be doing a floating point
conversion in the course of displaying wchan,
anyway???

Nothing. Last I checked ps the fp calculation was for displaying the time column.

Ralf