Skip to main content
fixed capitalization, grammar, formatting
Source Link
agarza
  • 2.4k
  • 8
  • 16
  • 27

I want to calculate the memory usage as a percentage for some processes on the device.

That is, how much percent of total memory a particular process is taking on the system. (Need it for reporting some metrics for both windowsWindows and macMac devices, so the percentage seems to be consistent among both)

With the top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100(process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100(process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100(process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual processprocesses so that I can use the third formula above  ?

Example: If Chrome is using 1 GB of memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in the numerator (memory usage of the process) and denominator (memory available in the system).

I want to calculate the memory usage as percentage for some processes on the device.

That is, how much percent of total memory a particular process is taking on the system. (Need it for reporting some metrics for both windows and mac devices, so percentage seems to be consistent among both)

With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above  ?

Example: If Chrome is using 1 GB memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in numerator (memory usage of process) and denominator (memory available in system).

I want to calculate the memory usage as a percentage for some processes on the device.

That is, how much percent of total memory a particular process is taking on the system. (Need it for reporting some metrics for both Windows and Mac devices, so the percentage seems to be consistent among both)

With the top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual processes so that I can use the third formula above?

Example: If Chrome is using 1 GB of memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in the numerator (memory usage of the process) and denominator (memory available in the system).

added 216 characters in body
Source Link

I want to calculate the memory usage as percentage for some processes on the device. With

That is, how much percent of total memory a particular process is taking on the system. (Need it for reporting some metrics for both windows and mac devices, so percentage seems to be consistent among both)

With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above ?

Example: If Chrome is using 1 GB memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in numerator (memory usage of process) and denominator (memory available in system).

I want to calculate the memory usage as percentage for some processes on the device. With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above ?

Example: If Chrome is using 1 GB memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in numerator (memory usage of process) and denominator (memory available in system).

I want to calculate the memory usage as percentage for some processes on the device.

That is, how much percent of total memory a particular process is taking on the system. (Need it for reporting some metrics for both windows and mac devices, so percentage seems to be consistent among both)

With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above ?

Example: If Chrome is using 1 GB memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in numerator (memory usage of process) and denominator (memory available in system).

added 223 characters in body
Source Link

I want to calculate the memory usage as percentagememory usage as percentage for some processes on the device. With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above ?

Example: If Chrome is using 1 GB memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in numerator (memory usage of process) and denominator (memory available in system).

I want to calculate the memory usage as percentage for some processes on the device. With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above ?

I want to calculate the memory usage as percentage for some processes on the device. With top command, we get the memory usage as size (KB, MB, GB) and the value is also not the actual physical memory (RAM) used but the virtual memory (physical + swap memory).

Q1. So, if I manually calculate the memory usage percentage, what formula should I use:

  • (process mem usage from top command) / (total physical memory + swap space used) * 100
  • (process mem usage from top command) / (total physical memory + swap space alloted) * 100
  • (process mem usage from top command) / (total physical memory) * 100

Q2. Is there any other way other than top command which only gives physical memory usage for individual process so that I can use the third formula above ?

Example: If Chrome is using 1 GB memory, then I can say that it is using xx % of memory. But to calculate that I need the same units in numerator (memory usage of process) and denominator (memory available in system).

edited tags
Link
bmike
  • 241.3k
  • 80
  • 433
  • 958
Loading
Source Link
Loading