-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'ps' incorrectly reports virutal memory usage #3003
Comments
I looked at the sysinfo code and they're dividing by 1000 and we're multiplying by 1000 so we get bytes. But, I still agree that it seems to be way off i.e. a factor of 1000. This is what mine looks like in Windows. My system doesn't have terabytes of virtual memory.
|
Something is going on somewhere in nushell. When I run nu's
when i run the sysinfo example program i get
|
I added a trace to return what
This seems to indicate that |
Can you try it with the latest main? I just landed #3007 which hopefully will improve it |
Hmm, while Windows seems okay, I'm still seeing large values in Linux. |
On Windows it's looking good @jonathandturner. I'm building in WSL2 now to see if I see anything odd in Linux. |
Something is going on in linux as well I think.
This is what virtual should be as per the man proc.
5.8TB vs 1.4GB I've posted the same info to the sysinfo issue as well. Update - I think I may see the problem in Linux. entry.virtual_memory = u64::from_str(parts[22]).unwrap_or(0) * page_size_kb; According to
It's reporting in bytes and then |
Submitted PR to fix linux virtual memory. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue has been marked stale for more than 10 days without activity. Closing this issue, but if you find that the issue is still valid, please reopen. |
Describe the bug
The 'ps' command reports virtual memory usage many times over reasonable numbers.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect the built in 'ps' command to provide information similar to the external 'ps' command
Screenshots
![image](https://user-images.githubusercontent.com/44913094/106845568-6ca02a80-6668-11eb-8e79-a8552bd25b73.png)
^ps -af
ps | where name == "yes"
Configuration (please complete the following information):
Run
version | pivot
and paste the output to show OS, features, etc.The text was updated successfully, but these errors were encountered: