[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Request (small) porting help for linuxinfo



-------------------
> Hello,
> I maintain the small utility linuxinfo which displays a brief
summary
> of the cpu/system.  I tried to improve the hppa port recently, but
> since I don't have access to a machine, I could not verify proper
> operation and hence I would be glad to know of failures (in PM or as
> bug reports) of it.  The requested test (in unstable, if possible)
is
> quite simple:
> 
> a) apt-get install linuxinfo

Setting up linuxinfo (1.1.8-11)

> b) linuxinfo

mkhppa3:/home/varenet# linuxinfo
Linux mkhppa3 2.6.12-rc1-pa9 #1 SMP Thu Mar 31 00:53:08 CEST 2005
Two Unknown 550MHz processors, 2187.26 total bogomips, 2004M RAM
System library 2.3.2

> If the output is incorrect, I need
> 
> c) cat /proc/cpuinfo

mkhppa3:/home/varenet# cat /proc/cpuinfo
processor       : 0
cpu family      : PA-RISC 2.0
cpu             : PA8600 (PCX-W+)
cpu MHz         : 550.000000
model           : 9000/800/A500-5X
model name      : Crescendo 550
hversion        : 0x00005d50
sversion        : 0x00000491
I-cache         : 512 KB
D-cache         : 1024 KB (WB, 0-way associative)
ITLB entries    : 160
DTLB entries    : 160 - shared with ITLB
bogomips        : 1093.63
software id     : 1555780568

processor       : 1
cpu family      : PA-RISC 2.0
cpu             : PA8600 (PCX-W+)
cpu MHz         : 550.000000
model           : 9000/800/A500-5X
model name      : Crescendo 550
hversion        : 0x00005d50
sversion        : 0x00000491
I-cache         : 512 KB
D-cache         : 1024 KB (WB, 0-way associative)
ITLB entries    : 160
DTLB entries    : 160 - shared with ITLB
bogomips        : 1093.63
software id     : 1555780568

>    ls -l /proc/kcore
>    ls -l /proc/meminfo

mkhppa3:/home/varenet# cat /proc/meminfo
MemTotal:      2053008 kB
MemFree:        222144 kB
Buffers:        428688 kB
Cached:         997476 kB
SwapCached:          0 kB
Active:        1049772 kB
Inactive:       398216 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:      2053008 kB
LowFree:        222144 kB
SwapTotal:      976888 kB
SwapFree:       976888 kB
Dirty:            1316 kB
Writeback:           0 kB
Mapped:          30028 kB
Slab:           370096 kB
CommitLimit:   2003392 kB
Committed_AS:    43988 kB
PageTables:       1356 kB
VmallocTotal:   245728 kB
VmallocUsed:       524 kB
VmallocChunk:   245204 kB
mkhppa3:/home/varenet# ls -l /proc/kcore
-r--------  1 root root 2147487744 Apr  7 13:26 /proc/kcore
mkhppa3:/home/varenet# ls -l /proc/meminfo
-r--r--r--  1 root root 0 Apr  7 13:27 /proc/meminfo

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

My guess is you want to round up the amount of memory to the next
power of 2, that way you'll get 2048M instead of the bogus 2004M one.

Something like that would be good i suppose:

Two PA8600 (PCX-W+) 550MHz processors, 2187.26 total bogomips, 2048M
RAM

ie use the "cpu" field in cpuinfo.

HTH

Thibaut VARENE
PA/Linux ESIEE Team
http://www.pateam.org/



Reply to: