Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
meminfo -mto display all main memory usage sorted by segment address.This option allows for easier-to-visualize main memory usage by address, for looking at how much main memory is used by applications and the sizes of the blocks beside each segment. It can also be used for system tuning when adjusting /bootopts parameters for seeing the memory blocks used by or available to applications, buffers and UMB.
The internal memory list is subsorted based on
seg_addat boot, so there may an address which appears out of order, which is the case for the INITPROC used-once segment released at the end of kernel initialization (see below for screenshot).Also cleaned up mem.c considerably, reducing code size.
Here's

meminfo -mrunning with UMB with two sorted segment lists; the last two lines are the freed INITPROC segment, now being occupied by /bin/init code followed by some free space: