memory - top shows negative RES size -


In the NetBSD system, I am seeing this issue where Top command shows the -ve value for resident memory. I checked the memory leak in the code and I did not find any. In fact it is also in case of shell (SH) process [not shown in the picture below].

I'm curious if a bug in the user program could be the cause of this behavior. If this is true, then I want to understand how I can reproduce this issue.

In addition to this, if any known bugle in NetBSD or GCC Library can cause this problem.

Enter image details here

< Div class = "post-text" itemprop = "Process state on NetBSD (despite optimizing / porting for NetBSD) Text for all original devices">

top There is a relatively poor cousin. I would not be surprised if there are some bugs related to integer conversions (signed / unsigned, overflow, etc.). The original top code is not the highest quality at the first place.


Comments