1 00:00:01,070 --> 00:00:10,720 As you can see here, a new column titled The state here state team has been added to the output. 2 00:00:10,730 --> 00:00:19,010 So state is just a short for state and reveals the current status of the process. 3 00:00:19,010 --> 00:00:20,540 So let's actually. 4 00:00:21,750 --> 00:00:25,410 See what these are and understand more. 5 00:00:25,650 --> 00:00:29,000 So here, let's actually open our here. 6 00:00:29,040 --> 00:00:37,950 Uh, it seems that yes, actually here, this was from our previous lecture from permission and here. 7 00:00:37,950 --> 00:00:40,290 So now the are here. 8 00:00:40,290 --> 00:00:47,240 And as you can see here, we also have we have are the uppercase and lowercase else lowercase s and 9 00:00:47,250 --> 00:00:48,450 lowercase l. 10 00:00:49,480 --> 00:00:52,150 We also have this left row. 11 00:00:52,420 --> 00:00:55,350 And now you will understand all of these states here. 12 00:00:55,360 --> 00:01:00,430 So R means R means running. 13 00:01:00,430 --> 00:01:09,810 So this means the process is running or ready to run, and the uppercase s means sleeping. 14 00:01:09,820 --> 00:01:13,060 So the sleeping means the process is not running. 15 00:01:13,060 --> 00:01:24,310 Rather, it's waiting for an event such as a keystroke or a network packet, and D is in interruptible. 16 00:01:27,830 --> 00:01:30,710 Sleep in interruptible sleep. 17 00:01:30,710 --> 00:01:32,210 So the process is wait. 18 00:01:32,240 --> 00:01:36,100 Waiting for input outputs such as a disk drive. 19 00:01:36,110 --> 00:01:38,660 And we also have t. 20 00:01:38,690 --> 00:01:42,230 This t means stop. 21 00:01:42,380 --> 00:01:42,950 Stop. 22 00:01:42,950 --> 00:01:46,910 So this means that the process has been instructed to stop. 23 00:01:46,910 --> 00:01:50,540 So you will learn more about this in later lectures. 24 00:01:50,540 --> 00:01:53,540 And we also have uppercase s here. 25 00:01:53,540 --> 00:01:56,810 So this is zombie process. 26 00:01:56,930 --> 00:01:57,440 All right? 27 00:01:57,530 --> 00:01:58,220 Process. 28 00:01:58,220 --> 00:02:07,070 So this zombie process is a child process that has terminated but has not been cleaned up by its parent. 29 00:02:07,070 --> 00:02:08,900 So this is zombie process. 30 00:02:08,900 --> 00:02:14,960 And we also have this we also have this right row here. 31 00:02:14,960 --> 00:02:18,500 So this is a high priority. 32 00:02:20,030 --> 00:02:20,860 Process. 33 00:02:20,870 --> 00:02:25,080 So now I will explain what this high priority priority. 34 00:02:25,880 --> 00:02:26,510 Process is. 35 00:02:26,510 --> 00:02:30,920 So it's possible to grant more important importance to a process. 36 00:02:30,920 --> 00:02:33,390 So giving it more time on the CPU. 37 00:02:33,440 --> 00:02:37,640 So this property of a process is called niceness. 38 00:02:37,640 --> 00:02:45,320 So a process with a high priority is said to be less nice because it's taking more of the CPU time. 39 00:02:45,320 --> 00:02:48,620 So which leaves less for everybody else. 40 00:02:48,620 --> 00:02:53,690 And we also have here the uppercase N here. 41 00:02:53,690 --> 00:02:56,210 So this is a low priority. 42 00:02:56,210 --> 00:02:59,870 So a low priority process. 43 00:03:00,560 --> 00:03:07,430 So this is a process with a low priority and this is a nice process, Will and this will get this low 44 00:03:07,430 --> 00:03:09,010 priority process. 45 00:03:09,020 --> 00:03:17,090 We will get the processor to time only after the process with higher priority have been served. 46 00:03:17,090 --> 00:03:19,880 So it will comes after this. 47 00:03:21,950 --> 00:03:25,760 So this process state may be followed by other characters. 48 00:03:25,760 --> 00:03:29,900 So these states indicate various exotic process characteristics. 49 00:03:29,900 --> 00:03:32,510 So the C, the P is here. 50 00:03:32,510 --> 00:03:34,640 Actually, let me write that down here. 51 00:03:34,640 --> 00:03:38,390 So the P is also not clear. 52 00:03:38,390 --> 00:03:40,220 So the P is. 53 00:03:40,940 --> 00:03:43,010 Man page for more details. 54 00:03:43,010 --> 00:03:44,240 You can also watch here. 55 00:03:44,240 --> 00:03:48,500 So another popular set of options is Alex here. 56 00:03:48,620 --> 00:03:49,520 So p. 57 00:03:49,520 --> 00:03:58,880 S a u x, so and as in previous code, this is without dash. 58 00:03:58,880 --> 00:04:04,910 So and here and as you can see here, this gives us even more information. 59 00:04:04,910 --> 00:04:11,390 So this set of options displays the process belonging to every user. 60 00:04:11,390 --> 00:04:17,480 So using this option without deleting Dash invokes the command with BSD style behavior. 61 00:04:17,480 --> 00:04:24,710 So the Linux version of PS can emulate the behavior of the PS program found in several different Unix 62 00:04:24,710 --> 00:04:25,460 implementations. 63 00:04:25,460 --> 00:04:27,020 So with these options. 64 00:04:27,820 --> 00:04:29,860 We get additional columns here. 65 00:04:29,860 --> 00:04:38,740 As you can see, user ID, CPU, memory, CPU start, state start start time and command. 66 00:04:38,770 --> 00:04:41,320 Now I will explain all of this here. 67 00:04:41,320 --> 00:04:43,210 So the first year user. 68 00:04:43,510 --> 00:04:46,030 This is a user ID and this. 69 00:04:46,450 --> 00:04:50,350 And as you can see here, this means the owner of the process. 70 00:04:50,350 --> 00:04:54,160 So as you can see in this process is owner is root. 71 00:04:54,160 --> 00:05:00,280 And here when we come down here, as you can see here, owner is telephone, which is mousepad here 72 00:05:00,430 --> 00:05:05,320 that we opened right here and we also pass command itself. 73 00:05:05,590 --> 00:05:09,820 And this is lastly opened process here and here. 74 00:05:09,820 --> 00:05:13,230 As you can see here, we also have message plus polkit. 75 00:05:13,240 --> 00:05:16,420 This is different users for drivers and etcetera. 76 00:05:16,870 --> 00:05:17,680 So. 77 00:05:18,640 --> 00:05:19,630 Let's now go. 78 00:05:19,660 --> 00:05:28,090 Let's go to our what the process ID So obviously the process ID is just a process ID this gives it and 79 00:05:28,100 --> 00:05:31,000 the scanning a scanning order here. 80 00:05:31,090 --> 00:05:37,360 The last process gives a most process ID here and actually it's here. 81 00:05:37,360 --> 00:05:43,960 And this is the first process that we started in Spin in a splash when system started right here. 82 00:05:43,960 --> 00:05:47,740 So we also have the CPU. 83 00:05:47,980 --> 00:05:52,480 So this is the CPU usage in a percent here. 84 00:05:52,480 --> 00:05:55,000 As you can see, this takes multiple takes. 85 00:05:55,270 --> 00:05:58,660 Uh, almost 1% of my CPU here. 86 00:05:58,660 --> 00:06:02,710 We also have the memory usage present here. 87 00:06:02,710 --> 00:06:05,740 So this is the memory usage, just the memory usage present. 88 00:06:05,740 --> 00:06:07,870 As you can see, most of this takes zero. 89 00:06:07,870 --> 00:06:13,390 And here our terminal takes to almost 3% of our. 90 00:06:15,390 --> 00:06:16,470 A memory usage. 91 00:06:16,470 --> 00:06:25,440 And as you can see from it, that we use for drawing things on the screen actually takes the 2% of my 92 00:06:25,440 --> 00:06:28,290 memory on my computer here. 93 00:06:28,290 --> 00:06:31,950 So let's go to our. 94 00:06:32,960 --> 00:06:34,070 RSS. 95 00:06:34,100 --> 00:06:37,160 This is actually a resident set size. 96 00:06:37,160 --> 00:06:41,540 So this is the amount of physical memory, the RAM, random access memory. 97 00:06:41,990 --> 00:06:44,960 The process is using in kilobytes here. 98 00:06:44,960 --> 00:06:51,530 And as you can see, RSS, it's actually takes, uh, 12180. 99 00:06:52,670 --> 00:06:53,510 Kilobytes. 100 00:06:53,510 --> 00:06:56,120 And we also have VCs here. 101 00:06:56,120 --> 00:06:58,400 So this is the virtual memory size. 102 00:06:59,480 --> 00:07:01,580 And here we also have START. 103 00:07:01,580 --> 00:07:04,820 So this is a time, the time when the process started. 104 00:07:04,820 --> 00:07:13,820 So for a value and these are actually values over, uh, 24 hours here, as you can see here, this 105 00:07:13,820 --> 00:07:14,810 is 24. 106 00:07:14,900 --> 00:07:16,220 24 hours. 107 00:07:16,220 --> 00:07:21,800 So that's it with our comment in next lecture, you will also learn the top comment. 108 00:07:21,800 --> 00:07:23,600 So I'm waiting you in the next lecture.