Request to support LoongArch ISA
Linux performance monitoring on-screen or to CSV file
Brought to you by:
nigelgriffiths
The LoongArch architecture is a RISC-style ISA developed by Loongson. I write to request nmon to support LoongArch ISA, so that nmon can collect data from LoongArch Linux easily.
I did some investigation. Some code changes are required to show CPU information correctly in the Welcome view and Resource view, based on cpuinfo or lscpu output from Linux on LoongArch. The other functionalities like CPU utilization, memory, or disk seem working well.
Before submitting the patch, I wonder your thoughts about this support request and any other I should update for a new ISA support.
Thanks!
Sorry for the delay.
I have no hardware of this type.
Can you retry the latest nmon version?
Can you supply /proc/cpuinfo and lscpu examples?
Cheers N
Hi Nigel,
The /proc/cpuinfo and lscpu examples are attached as you requested.
Thanks!
Looking into this more.
Some of the welcome info is from
/etc/*ease*easecatches the filenames ending Release or release.Can you send a copy?
Also can you take a snapshot of the Welcome screen so I know exactly what needs fixing.
Cheers Nigel
Last edit: Nigel Griffiths 2026-09-21
Hi Nigel,
The file, os-release, is attached. Can I know what you mean by Welcome screen?
Thanks!
The "welcome" (you called this above the welcome view) screen is the first think that nmon displays as it starts up.
Oh, I see. I need find the code written last year, and come back to you later. Thanks!
I have reworked the Operating System name on the Welcome screen (and elsewhere like the resoures view) to use just /etc/os-release and its PRETTY_NAME line. This removed roughly 50 ines of code.
It seems the various Distros are more consistent these days but the order of lines in the file are not consistent. I note the os-release file you sent is "Arch Linux" but there is no version.
Apparently, the Arch Linux uses a rolling release with updates, so no version number.
I am not clear hos the sysadmin can determine if two VM's are consistent or not!
I am closing this issue.
If you upgrade to the shortly to be released nmon 16t on the LoongArch machine and other fixes are needed let me know.
Hi Nigel,
Attached are:
The core features of nmon work on LoongArch64. All changes read the proper CPU information and make it buildable on LoongArch64. If you are OK with the changes, I can upload the nmon binary of LoongArch64. Thanks!