Discussion:
Request (small) porting help for linuxinfo
(too old to reply)
Helge Kreutzmann
2006-03-08 16:40:20 UTC
Permalink
Hello,
I maintain the small utility linuxinfo which displays a brief summary
of the cpu/system. I am unsure about the s390 port and would like to
improve / update it. (Also if you have other machines and it does
not work there, please let me know as well!) Since I have no access
to such a machine, I would be glad to know of failures (in PM or via
reportbug(1)) of it. The requested test (in unstable or testing, if
possible) is quite simple:

a) apt-get install linuxinfo

b) linuxinfo
If the output is incorrect, I need

c) cat /proc/cpuinfo
ls -l /proc/kcore
ls -l /proc/meminfo

(or use reportbug, which includes these infos automatically)

along with the output of linuxinfo (any maybe the number of cpus you
have).

Thanks for all the input!

Greetings

Helge
--
Dr. Helge Kreutzmann, Dipl.-Phys. ***@itp.uni-hannover.de
gpg signed mail preferred
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.ffii.de/
Martin Michlmayr
2006-03-08 17:20:24 UTC
Permalink
Post by Helge Kreutzmann
c) cat /proc/cpuinfo
ls -l /proc/kcore
ls -l /proc/meminfo
cat /proc/meminfo, obviously.
--
Martin Michlmayr
http://www.cyrius.com/
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Frans Pop
2006-03-08 17:40:24 UTC
Permalink
Hi,
I am unsure about the s390 port and would like to improve / update it.
I run S/390 on the hercules emulator and have given it a try there.
The basic info should be the same to a real machine though.
b) linuxinfo
If the output is incorrect, I need
$ linuxinfo
Linux mordor 2.4.27-2-s390 #1 SMP Fri Aug 26 19:19:03 UTC 2005
One IBM/S390 MHz processor, 248.21 total bogomips, 0M RAM
System library 2.3.6

CPU frequency missing? No idea how to get that though.
RAM looks bad.
c) cat /proc/cpuinfo
vendor_id : IBM/S390
# processors : 1
bogomips per cpu: 248.21
processor 0: version = FD, identification = 002623, machine = 3090
ls -l /proc/kcore
-r-------- 1 root root 67112960 Mar 8 18:22 /proc/kcore
ls -l /proc/meminfo
-r--r--r-- 1 root root 0 Mar 8 18:23 /proc/meminfo

Hmm. cat is probably more useful:
/proc/meminfo:
total: used: free: shared: buffers: cached:
Mem: 62824448 58621952 4202496 0 1449984 12615680
Swap: 34103296 30969856 3133440
MemTotal: 61352 kB
MemFree: 4104 kB
MemShared: 0 kB
Buffers: 1416 kB
Cached: 10100 kB
SwapCached: 2220 kB
Active: 11736 kB
Inactive: 39144 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 61352 kB
LowFree: 4104 kB
SwapTotal: 33304 kB
SwapFree: 3060 kB

I have set up the emulator with 1 CPU.

Cheers,
FJP
Helge Kreutzmann
2006-03-09 19:00:22 UTC
Permalink
Hello,
Post by Frans Pop
I am unsure about the s390 port and would like to improve / update it.
I run S/390 on the hercules emulator and have given it a try there.
The basic info should be the same to a real machine though.
Thanks.
Post by Frans Pop
$ linuxinfo
Linux mordor 2.4.27-2-s390 #1 SMP Fri Aug 26 19:19:03 UTC 2005
One IBM/S390 MHz processor, 248.21 total bogomips, 0M RAM
System library 2.3.6
CPU frequency missing? No idea how to get that though.
RAM looks bad.
ls -l /proc/kcore
-r-------- 1 root root 67112960 Mar 8 18:22 /proc/kcore
Did you call linuxinfo and the ls as ordinary user? I wonder, because
the size looks ok.

Do you have moment to spare and can I send you a patch to try? As I
am not a Debian developer, I do not have access to a s390 machine so
I cannot try myself.

I would like to understand why the harmless stat call fails for
(appearingly all) s390 machines:

if (stat("/proc/kcore", &st_buf) < 0)
{
memory = 0;
}

(or if the error is elsewhere ...).

Greetings

Helge
--
Dr. Helge Kreutzmann, Dipl.-Phys. ***@itp.uni-hannover.de
gpg signed mail preferred
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.ffii.de/
Frans Pop
2006-03-10 00:00:15 UTC
Permalink
Post by Helge Kreutzmann
Did you call linuxinfo and the ls as ordinary user? I wonder, because
the size looks ok.
Yes to both.
Post by Helge Kreutzmann
Do you have moment to spare and can I send you a patch to try? As I
am not a Debian developer, I do not have access to a s390 machine so
I cannot try myself.
Sure. I'm fairly busy over the weekend, so a reply to a test request may
have to wait until after that.

Cheers,
FJP
Helge Kreutzmann
2006-03-11 20:20:16 UTC
Permalink
Hello Frans,
Post by Frans Pop
Sure. I'm fairly busy over the weekend, so a reply to a test request may
have to wait until after that.
No problem, I don't expect Etch to be ready next week either (and I'll
be offline 'till Tuesday as well) :-))

When you have time, can you do the following:

apt-get source linuxinfo
cd linuxinfo-1.1.8
fakeroot make -f debian/rules patch

Then please replace linuxinfo_common.c with the version I attached and
run
fakeroot make -f debian/rules build
and send me the output of
./linuxinfo

Hopefully I see than where the memory size gets set to 0 ...

Thanks!

Helge
--
Dr. Helge Kreutzmann, Dipl.-Phys. ***@itp.uni-hannover.de
gpg signed mail preferred
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.ffii.de/
Frans Pop
2006-03-13 13:40:20 UTC
Permalink
Post by Helge Kreutzmann
Then please replace linuxinfo_common.c with the version I attached and
run
fakeroot make -f debian/rules build
and send me the output of
./linuxinfo
With the (privately sent) patched version, I get:

$ ./linuxinfo
1st: 67112960
2nd: 64
Linux mordor 2.4.27-2-s390 #1 SMP Fri Aug 26 19:19:03 UTC 2005
One IBM/S390 MHz processor, 249.85 total bogomips, 0M RAM
System library 2.3.6
Helge Kreutzmann
2006-03-15 20:30:14 UTC
Permalink
Hello Frans,
Post by Frans Pop
$ ./linuxinfo
1st: 67112960
2nd: 64
Linux mordor 2.4.27-2-s390 #1 SMP Fri Aug 26 19:19:03 UTC 2005
One IBM/S390 MHz processor, 249.85 total bogomips, 0M RAM
System library 2.3.6
Thanks. Understood and fixed. I sent a new version (-16) to my sponsor
which fixes the memory reporting on s390.

Thanks to all for testing!

Greetings

Helge
--
Dr. Helge Kreutzmann, Dipl.-Phys. ***@itp.uni-hannover.de
gpg signed mail preferred
64bit GNU powered http://www.itp.uni-hannover.de/~kreutzm
Help keep free software "libre": http://www.ffii.de/
Ivan Warren
2006-03-08 18:00:22 UTC
Permalink
On hercules, with 2 processors, s390x (64 bits) and 2.6.11 kernel...
Post by Helge Kreutzmann
a) apt-get install linuxinfo
b) linuxinfo
deb390-1:/home/ivan# linuxinfo
Linux deb390-1 2.6.11-1-s390x #1 SMP Mon Apr 4 18:37:40 CEST 2005
Two IBM/S390 MHz processors, 295.72 total bogomips, 0M RAM
System library 2.3.6
Post by Helge Kreutzmann
If the output is incorrect, I need
c) cat /proc/cpuinfo
ls -l /proc/kcore
ls -l /proc/meminfo
deb390-1:/home/ivan# cat /proc/cpuinfo
vendor_id : IBM/S390
# processors : 2
bogomips per cpu: 147.86
processor 0: version = 00, identification = 000777, machine = 2084
processor 1: version = 00, identification = 000777, machine = 2084
deb390-1:/home/ivan# ls -l /proc/kcore
-r-------- 1 root root 536875008 Mar 8 18:46 /proc/kcore
deb390-1:/home/ivan# cat /proc/meminfo
MemTotal: 509356 kB
MemFree: 401328 kB
Buffers: 4132 kB
Cached: 75688 kB
SwapCached: 0 kB
Active: 46356 kB
Inactive: 39740 kB
HighTotal: 0 kB
HighFree: 0 kB
LowTotal: 509356 kB
LowFree: 401328 kB
SwapTotal: 2097136 kB
SwapFree: 2097136 kB
Dirty: 0 kB
Writeback: 0 kB
Mapped: 12424 kB
Slab: 10008 kB
CommitLimit: 2351812 kB
Committed_AS: 17700 kB
PageTables: 480 kB
VmallocTotal: 4294434816 kB
VmallocUsed: 1452 kB
VmallocChunk: 4294433164 kB

HTH,

--Ivan
--
To UNSUBSCRIBE, email to debian-s390-***@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact ***@lists.debian.org
Loading...