RT-Thread / RT-Thread/rt-thread
[Bug] counting of vsz on ps/top commands is not correct
Open
Nobody has claimed this yet.
Arch: RISC-V
RT-Smart
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
RT-Thread Version
04b77e409e8f724ec8896f106418fb089e96f3f9
Hardware Type/Architectures
cvitek, milkv duo 256
Develop Toolchain
GCC
Describe the bug
Behaviour
- using
psortopcommands to list vsz of process, - or directly cat /proc/self/stat
Expected
Should reflect valid status of process on procfs.
Other additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the VSZ discrepancy on the cvitek/Milk-V Duo 256 setup using the ps and top commands, then compare their output with /proc/self/stat. Trace the relevant process-stat and procfs implementations in the RT-Thread source. Done means VSZ values consistently reflect the process's valid procfs status.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100