Skip to main content

I am trying to fetch memory usage with below top command.

KiB Mem : 8009480 total, 1438848 free, 1964392 used, 4606240 buff/cache KiB Swap: 7340028 total, 5302364 free, 2037664 used. 5202692 avail Mem

KiB Mem :  8009480 total,  1438848 free,  1964392 used, 4606240 buff/cache 
KiB Swap:  7340028 total,  5302364 free,  2037664 used. 5202692 avail Mem
top -p $PID -n 1 -b | grep 'KiB Mem :' | awk -F, '{print $3}'
1963780 used

1963780 used

Strangely sometimes I receive the output as

*"15108960+used"*

*"15108960+used"*

I am not able to understand why are the +,* symbol coming in between sometimes.

I couldn't find anything in man page about it.

What does that mean? How do I make top command print without * and + in the output.

Note : Running in CentOs Machine.

I am trying to fetch memory usage with below top command.

KiB Mem : 8009480 total, 1438848 free, 1964392 used, 4606240 buff/cache KiB Swap: 7340028 total, 5302364 free, 2037664 used. 5202692 avail Mem

top -p $PID -n 1 -b | grep 'KiB Mem :' | awk -F, '{print $3}'

1963780 used

Strangely sometimes I receive the output as

*"15108960+used"*

I am not able to understand why are the +,* symbol coming in between sometimes.

I couldn't find anything in man page about it.

What does that mean? How do I make top command print without * and + in the output.

Note : Running in CentOs Machine.

I am trying to fetch memory usage with below top command.

KiB Mem :  8009480 total,  1438848 free,  1964392 used, 4606240 buff/cache 
KiB Swap:  7340028 total,  5302364 free,  2037664 used. 5202692 avail Mem
top -p $PID -n 1 -b | grep 'KiB Mem :' | awk -F, '{print $3}'
1963780 used

Strangely sometimes I receive the output as

*"15108960+used"*

I am not able to understand why are the +,* symbol coming in between sometimes.

I couldn't find anything in man page about it.

What does that mean? How do I make top command print without * and + in the output.

Note : Running in CentOs Machine.

Source Link
Inquisitive
  • 392
  • 1
  • 4
  • 14

top command and + and * symbols

I am trying to fetch memory usage with below top command.

KiB Mem : 8009480 total, 1438848 free, 1964392 used, 4606240 buff/cache KiB Swap: 7340028 total, 5302364 free, 2037664 used. 5202692 avail Mem

top -p $PID -n 1 -b | grep 'KiB Mem :' | awk -F, '{print $3}'

1963780 used

Strangely sometimes I receive the output as

*"15108960+used"*

I am not able to understand why are the +,* symbol coming in between sometimes.

I couldn't find anything in man page about it.

What does that mean? How do I make top command print without * and + in the output.

Note : Running in CentOs Machine.