RT-Thread / RT-Thread/rt-thread

[Bug] counting of vsz on ps/top commands is not correct

Open
#9,179 0 comments 0 reactions 0 assignees View on GitHub

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
  1. using ps or top commands to list vsz of process,
  2. or directly cat /proc/self/stat
b49a64e5125da6ecfe82a823c929b0c7_
Expected

Should reflect valid status of process on procfs.

Other additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.