Discussion:
lsmem on current i686 /sys/devices/system/memory not existing
Add Reply
Marco Moock
2025-02-21 08:49:56 UTC
Reply
Permalink
Hello!

I am running current on i686 on a Thinkpad X40.

lsmem works on other systems, but not on this.

I read that it was originally created for s390, so my question is: Is
that supposed to run on i686?

It works on x86_64 (amd64).
--
kind regards
Marco
noel
2025-02-21 11:21:23 UTC
Reply
Permalink
Post by Marco Moock
Hello!
I am running current on i686 on a Thinkpad X40.
lsmem works on other systems, but not on this.
I read that it was originally created for s390, so my question is: Is
that supposed to run on i686?
It works on x86_64 (amd64).
probably not. even on 15.0, not likely lsmem issue, but later kernel
issue. also does not exist on arm. No idea when they broke it, must be
years ago.


***@dev32:~# lsmem
lsmem: cannot open /sys/devices/system/memory: No such file or directory


***@dev64:~# lsmem
RANGE SIZE STATE REMOVABLE BLOCK
0x0000000000000000-0x00000000dfffffff 3.5G online yes 0-27
0x0000000100000000-0x000000021fffffff 4.5G online yes 32-67

Memory block size: 128M
Total online memory: 8G
Total offline memory: 0B
Joseph Rosevear
2025-03-01 23:36:24 UTC
Reply
Permalink
Post by Marco Moock
Hello!
I am running current on i686 on a Thinkpad X40.
lsmem works on other systems, but not on this.
I read that it was originally created for s390, so my question is: Is
that supposed to run on i686?
It works on x86_64 (amd64).
It works on my x86_64 Intel(R) Core(TM) i5-4590.

Thanks for telling me about this interesting command. I wonder what
practical uses it has?
Marco Moock
2025-03-02 14:18:12 UTC
Reply
Permalink
Post by Joseph Rosevear
Thanks for telling me about this interesting command. I wonder what
practical uses it has?
Getting information about installed memory.

Maybe it is historical for s390.
I haven't had such a system, but maybe they have detachable memory, so
modules can be inserted and removed while the system is running.
The online/offline state is not being shown by free.

***@ryz:~$ lsmem
RANGE SIZE STATE REMOVABLE BLOCK
0x0000000000000000-0x00000000cfffffff 3.3G online yes 0-25
0x0000000100000000-0x00000003afffffff 10.8G online yes 32-117

Memory block size: 128M
Total online memory: 14G
Total offline memory: 0B
***@ryz:~$ free -h
total used free shared buff/cache available
Mem: 13Gi 4.4Gi 435Mi 8.0Mi 8.7Gi 9.2Gi
Swap: 4.0Gi 340Mi 3.7Gi
***@ryz:~$
--
kind regards
Marco

Send spam to ***@stinkedores.dorfdsl.de
Loading...