Same picture when I try to run other services or applications - all go in swap, top shows that MEM is not used (0.1% maximum for any process). The only process in my top is MySQL, but it is using 0.1% of RAM and 400Mb of swap. But, apparently, it reports that no process is using my RAM. So, I decided to find out who is using all my RAM, and I used top for that. So, I actually have only 42 Mb to use! As far as I understand, -/+ buffers/cache actually doesn't count the disk cache, so I indeed only have 42 Mb, right? I thought, I might be wrong, so I tried to switch off the disk caching and it had no effect - the picture remained the same. When I do free -m, here is what I got: total used free shared buffers cached Every application in the system is swapping heavily, and the system is very slow. In particular, it is worth checking with the -H (hierarchy) and -forest options to make sure it doesn’t have any important child processes that you’d forgotten about.Before actually asking, just to be clear: yes, I know about disk cache, and no, it is not my case :) Sorry, for this preamble :) Make sure it is the one you’re after, and check that it isn’t going to cause you any problems. RELATED: 37 Important Linux Commands You Should Know Before You Kill a Process COMMAND: command name or command line (name and command line parameters) If the command column cannot be seen, press the “Right Arrow” key. TIME+: total CPU time used by the task in hundredths of a second.%CPU: the share of CPU time used by the process since the last update.See the list below of the values this field can take RES: Resident memory used by the process.VIRT: Virtual memory used by the process.The columns hold information on the processes: There is a dashboard area at the top of the screen made up of lines of text, and a table in the lower part of the screen made up of columns. It provides a dynamic view of the processes running in your computer. To get an updating view of the processes, use the top command. You can provide a list of process IDs, separated by spaces. You are not restricted to one process ID. Use the -p (select by process ID) option to achieve this: ps -p 3403 Once you have found the process ID for the process you’re interested in, you can use it with the ps command to list the details of that process. CMD: The name of the command that launched the process.TIME: The amount of CPU processing time that the process has used.TTY: The name of the console that the user is logged in at.PSR: The processor that the process is assigned to.This is the non-swapped physical memory used by the process. SZ: Size in RAM pages of the process image. C: The number of children the process has.PPID: Parent process ID of the process.UID: The user ID of the owner of this process.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |