[00:00:00] Okay, cool. [00:00:12] Hope my screen is visible. [00:00:21] Cool. [00:00:22] Now, what is the objective today? [00:00:32] Today, we connect three layers. [00:00:36] One is what machine code is allowed to expect from a processor. [00:00:44] I'm speaking about the machine code and not the application code. [00:00:49] The second is how a particular CPU implements that contract. [00:00:56] Contract is nothing but the understanding that what and how the execution is going to happen. [00:01:05] And the third one is how the operating system interacts with the devices. [00:01:12] By the end, you should be able to explain these ideas [00:01:16] using both a processor architecture and a Linux observation. [00:01:26] So now, which area is closest to your current work? [00:01:35] Let me stop sharing. [00:01:36] I will put options in the chat. [00:01:42] What is the closest to your work, current work, current project? [00:01:49] Is it software? [00:01:52] Or cloud? [00:01:54] Or embedded? [00:01:56] Or infrastructure? [00:02:05] Or data? [00:02:08] What is closest to your project to you? [00:02:12] What is closest to you in your project? [00:02:15] Okay, I'll be looking for data. [00:02:21] Software plus cloud. [00:02:23] Cloud. [00:02:25] Okay. [00:02:27] Server-side routing application. [00:02:29] Perfect. [00:02:30] There are embedded as well. [00:02:34] Cool. [00:02:36] Infrastructure, data, software, cloud. [00:02:41] Okay. [00:02:41] Perfect. [00:02:44] Now, let us start with the question that will organize the whole session. [00:02:50] I can understand any wish. [00:02:52] Cloud, infrastructure, data, DevOps. [00:02:55] Perfect. [00:02:57] So, we will map to this in the end. [00:03:02] Now, let us start with a question that will organize the whole session. [00:03:08] What is the question? [00:03:08] So, basically, we will spend the first hour on the architecture contract and three ISA families. [00:03:23] And after a short break, we will examine I.O. mechanisms, inspect Linux, and apply the concepts to [00:03:32] cloud and industrial scenarios. [00:03:36] We will do that. [00:03:38] The practical is not a command memorization, please. [00:03:43] This is something that probably I might have missed in telling in the previous sessions. [00:03:48] The practical, whatever we are saying, is not a command memorization exercise. [00:03:54] It is about learning what system evidence can and cannot tell us. [00:04:00] There are certain evidences which can tell us what is happening and certain information [00:04:07] cannot be obtainable from the system itself. [00:04:11] So, now, if this is the case, let us take one or two [00:04:23] response for this question. [00:04:30] Which segment do you expect to be most relevant to your role and why? [00:04:36] Now, what are all the segments we have? [00:04:42] We actually, I had given all the segments and there were responses. [00:04:48] But, what do you know from what you are assuming, what do you know from what you are assuming is [00:05:00] something that you need to be clear with. [00:05:04] Now, imagine two processors running the same program, must their internal designs be identical? [00:05:15] For example, I bought two processors from two different vendors. [00:05:22] Is the design going to be identical? [00:05:25] Think individually for 20 seconds. [00:05:27] Then, compare with someone beside you. [00:05:32] We are not asking whether every program runs everywhere. [00:05:36] That is not the question. [00:05:38] We are asking what must be consistent when software is compatible. [00:05:44] If you get two different processors from two different vendors and both the vendors are telling that [00:05:49] Java programs are compatible and we will be able to process it, all the requests. [00:05:53] First, in this case, is the design going to be identical? [00:06:04] So, even though both of them say that the software is compatible. [00:06:11] Now, what we must agree for a compiled binary to run, the chip brand, [00:06:21] the ISA, and execution environment, or the internal pipeline, what is that? [00:06:37] Okay, we will revisit that. [00:06:40] Thank you very much for responding. [00:06:43] The ISA or the execution environment and platform requirements matter. [00:06:49] Not pipelines, not the chip brand. [00:06:56] So, the internal pipeline need not be identical. [00:07:01] It need not be identical. [00:07:04] A binary also depends on operating system, API, libraries, runtime, and other platform details. [00:07:12] So, binary also is depending on the operating system, API. [00:07:19] Pipeline need not be identical. [00:07:22] What needs to be identical? [00:07:25] The execution environment or the ISA and the platform requirement matter. [00:07:34] So, now place these layers in the complete computer system. [00:07:42] Applications request work through APIs and system calls. [00:07:56] That I hope we are all on the same page. [00:07:58] The operating system manages the processes, memory, and device drivers. [00:08:10] That also we are aware. [00:08:12] The role of the application, the role of the operating system, [00:08:16] the objective of the operating system, the request from the applications. [00:08:23] Hope you are on the same page. [00:08:26] Now, the ISA defines the architectural behavior of the machine instructions. [00:08:34] So, the micro-architecture executes those instructions. [00:08:45] Separately, drivers and controllers. [00:08:48] So, we get controllers for devices. [00:09:00] And we get drivers for the corner. [00:09:04] So, the micro-architecture executes those instructions. [00:09:07] Separately, drivers and controllers coordinate. [00:09:13] Oh, is the screen not shared? [00:09:15] Oh, sorry guys. [00:09:17] Let me share it right now. [00:09:20] If it is not shared. [00:09:24] Probably, it came out of sharing. [00:09:28] Yeah, when I was trying to start the recording. [00:09:31] Okay, cool. [00:09:32] Thank you so much for reminding me. [00:09:36] So, let me just repeat. [00:09:37] It will take another two minutes. [00:09:39] Applications. [00:09:41] So, basically, now let us place all these layers, [00:09:44] whatever we discussed, in a complete computer system. [00:09:48] So, we normally start with applications because that is what we interact with as an end user. [00:09:55] So, applications request work through APIs and system calls. [00:09:58] Now, the operating system manages processes, memory, and device drivers. [00:10:06] The ISA defines the architectural behavior of machine instructions, not the machine. [00:10:15] And the micro-architecture executes those instructions. [00:10:19] Who is actually executing the instruction? [00:10:22] The micro-architecture. [00:10:23] So, separately, drivers and controllers, they coordinate the input-output. [00:10:33] These are connected layers, but they are not interchangeable. [00:10:38] Suppose, if I say that, can application directly provision the ISA contract and get the executions [00:10:48] from the CPU, no. [00:10:52] Can I interchange? [00:10:56] Do we need all the layers? [00:10:59] Answer is here. [00:11:02] But are they interdependent? [00:11:05] Are they connected? [00:11:06] A non-connected layer in an arranged order is helping you to read the instructions that [00:11:20] is coming from the applications and getting executed by the hardware. [00:11:25] And what is that non-changeable order? [00:11:29] It is applications, operating system, ISA contract, and the CPU implementation. [00:11:38] Drivers and controllers are going to provide additional support for it to happen. [00:11:46] So, does an application normally need to know which physical interrupt line your storage device is [00:11:54] using? [00:11:57] Answer is no. [00:11:58] It need not. [00:12:00] Application need not. [00:12:01] And that's why when Satinder said that, [00:12:03] as far as application is concerned, [00:12:05] architecture does not matter. [00:12:09] So, in those lines, he has put a message. [00:12:12] He is right. [00:12:13] Usually, no. [00:12:15] Application normally need not know which physical interrupt line your storage device. [00:12:21] Not only storage device. [00:12:23] It could be memory. [00:12:24] It could be network port. [00:12:27] Need not know. [00:12:30] The operating system and the drivers abstract. [00:12:34] Until today, we have not brought in into the picture the drivers and the controllers. [00:12:41] Today, we have brought in into the picture. [00:12:44] I could have brought this in a couple of weeks back itself. [00:12:49] But that time, it would have not made much sense for any of us. [00:12:54] Because today, now, we have a combined basic knowledge of both ISA as well as operating system. [00:13:03] We know how the system calls are made. [00:13:08] We know how the executions are happening. [00:13:10] We understand how the request is being put across. [00:13:15] Everything. [00:13:17] Now, let us bridge. [00:13:22] Software issues instructions. [00:13:25] Operating system coordinates resources. [00:13:28] Hardware executes the instructions. [00:13:31] In this example, the CPU. [00:13:35] And it communicates with the devices. [00:13:37] How it is able to communicate with the devices? [00:13:41] Wherever. [00:13:42] For example, if I have brought a new network card. [00:13:46] So, that's a different brand, which is not available by default in my laptop. [00:13:58] So, now, how am I going to make the operating system? [00:14:00] Operating system has the device driver. [00:14:06] So, now, I can attach the device to the motherboard. [00:14:10] And use the device driver. [00:14:15] To start communicating with it. [00:14:18] Operating system may not be able to communicate with the device directly like how it was [00:14:24] communicating with the registers, the CPUs, the memory earlier. [00:14:30] May not be directly communicating with the new device, which is a third-party device. [00:14:36] But it also has an intermediary, which will enable the communication for the operating system to communicate with the device. [00:14:47] So, for the hardware, if the operating system is not supporting, [00:14:56] then definitely we expect that communication gap to be filled in by the device manufacturer themselves. [00:15:08] That is where the controllers and drivers are coming into the picture. [00:15:14] Colonel supporting anything and everything that is being manufactured under the sun. [00:15:20] That's going to be impossible. [00:15:22] So, that's the reason. [00:15:25] Certain devices which are manufactured, if they are not part of the operating system, by default support, [00:15:35] then we will have the application that is going to support the communication between the operating system and the device. [00:15:43] It has nothing to do with the motherboard. [00:15:45] It has nothing to do with the registers. [00:15:47] It has nothing to do with the hard disk. [00:15:49] It doesn't have any relationship to the pipeline. [00:15:53] But, operating system and that device. [00:15:56] So, the drivers what we get, we will receive for operating system. [00:16:00] They'll say like, okay, if you are going to use this network device [00:16:04] in a Windows environment, then use Windows EXE file. [00:16:13] If you are going to use it in a Unix environment, Ubuntu as well, [00:16:19] then it will have in its own format. [00:16:23] So, all the popular operating system formats will be available along with the device as a device driver. [00:16:29] So, now, where is ISA coming into the picture? [00:16:38] In this scenario, where is ISA coming into the picture? [00:16:41] Now, an instruction set specifies the machine code interface visible to the software. [00:16:58] That's what it does. [00:17:00] Instructions and their meaning, architectural registers, memory access rules, [00:17:07] encodings, specified exceptions, privileged behavior. [00:17:16] All these things, it is part, it is part and parcel of the architecture itself. [00:17:23] Think of it as a contract. [00:17:29] So, ISA is nothing but the software visible contract. [00:17:34] Software can rely on the contract when the relevant architecture version [00:17:39] or the extensions and the execution environment is present. [00:17:48] So, now, what is architectural state? [00:17:54] Basically, the registers and memory visible effects are part of what software observes. [00:18:01] Our own application software, which we have developed. [00:18:06] When we are running it on a hardware, what it observes. [00:18:12] That is what is the architectural state. [00:18:16] Now, encodings. [00:18:19] Basically, the machine code must be decoded [00:18:23] according to the ISA rules. [00:18:26] So, that is encodings. [00:18:29] Extensions. [00:18:32] Software that uses an optional extension requires hardware and software support for it. [00:18:41] Those are exceptions. [00:18:44] Then, the binary compatibility also involves API, [00:18:48] operating system, libraries, and platform conventions. [00:18:56] So, the ISA is a contract or API for machine code. [00:19:01] The microarchitecture is one way to implement it. [00:19:05] It's not the only way. [00:19:08] Microarchitecture implements, microarchitecture executes. [00:19:13] Finally, microarchitecture is the one which does the job for us. [00:19:18] Okay, cool. [00:19:23] Now, if a program uses an optional vector extension, [00:19:32] is a processor supporting [00:19:34] only the base ISA necessarily be able to execute it? [00:19:43] We have a processor that supports only the base ISA. [00:19:46] So, microarchitecture will be able to support a program that uses optional vector extension. [00:19:54] The answer is no, it cannot. [00:19:57] The required extension and the execution environment [00:20:01] must be supported. [00:20:02] Our software must use an alternate implementation. [00:20:10] So, microarchitecture is not the only way to implement it. [00:20:16] The contract does not dictate the exact internal engine. [00:20:33] That is macros architecture. [00:20:40] So then, how is it different? [00:20:42] Even though you have multiple engines, the ISA contract can be seen. [00:20:56] Now, microarchitecture describes how a particular processor implements its ISA. [00:21:03] So, implementations may differ in a pipeline width or cache hierarchy or branch prediction [00:21:14] or execution units are out-of-order scheduling. [00:21:24] Those choices influence throughput, latency, power, area, and cost. [00:21:28] While the processor must preserve the architectural behavior defined by its ISA. [00:21:40] So now, [00:21:45] we understand. [00:21:46] different implementations is not going to impact. [00:21:55] It's not going to differ substantially in performance, power, cost, and area. [00:22:01] But they are not same. [00:22:02] They are not similar as well. [00:22:06] So, in order pipeline, for example, smaller cache, lower design complexity. [00:22:10] Out-of-order execution, large caches, and speculative execution. [00:22:20] Either you do implementation A or implementation B. [00:22:30] Both can implement the same ISA while differing substantially in performance, power, cost, and area. [00:22:36] So now, we understand at a very high level, HR decode, then execution units, [00:22:48] moving to cache, and finally, branch prediction. [00:22:53] Now, [00:22:59] can two processors implement the same ISA and have different performance? [00:23:04] The answer is yes. [00:23:06] The microarchitecture, clock behavior, cache, memory system, power limits, manufacturing process, [00:23:14] or even workload, all that matter. [00:23:21] Okay. [00:23:23] So, this is why [00:23:26] the risk or CISC is more useful [00:23:28] as a set of design questions than a simple versus complex slogan. [00:23:38] So, we should not be thinking that a simple [00:23:42] will not be able to accommodate our requirements, [00:23:45] our regions, and our understanding. [00:23:48] Then, that's a business issue. [00:23:52] So, we should be in a position to provide that answer. [00:23:58] So, now, [00:24:14] when we are giving the instructions, how are they decoded or how are they encoded? [00:24:19] What operations are presented or represented architecturally? [00:24:27] What is the register model? [00:24:30] How is memory accessed? [00:24:34] What operations are represented architecturally? [00:24:38] How much work does decoding require? [00:24:41] What implementation strategy is used? [00:24:46] Modern processes complicate any simple slope. [00:24:52] So, it is not about a simple or complex. [00:25:01] It is about whether it would be able to [00:25:04] achieve or it will be able to achieve with good performance. [00:25:16] Okay. [00:25:17] Cool. [00:25:18] So, now, it's time for us to look at the risk and CISC. [00:25:24] Now, if you look at the instruction coding, [00:25:26] whether it can be fixed with or variable length encodings. [00:25:36] What is the density of the code? [00:25:39] What is the complexity of decoding RAM? [00:25:43] What is the optional compressed encodings that are available? [00:25:46] You saw earlier what is encoding. [00:25:52] Now, when an instruction is being sent, [00:26:00] assuming that you have an X86 system, [00:26:07] the instructions may be translated into internal micro-operations. [00:26:12] Pretty much possible. [00:26:13] You may cut across and put a question to me saying that. [00:26:19] What did you have? [00:26:22] Then I have to reply back. [00:26:25] And when I am replying back, if it is like almost [00:26:30] lunchtime or beyond that, [00:26:32] then there's no point in speaking about what we had in the breakfast. [00:26:38] Because the lunchtime is also past. [00:26:40] So, we should be thinking about how are we going to. [00:26:50] So, now, in this scenario, [00:26:54] let us not reduce the risk or CISC. [00:26:59] Saying that risk is simple and CISC is complex. [00:27:02] No, let us not do that. [00:27:03] And that's not the right way to understand as well. [00:27:06] So, at this point of time, I would like to pause. [00:27:13] And then check if there are any queries, questions before we proceed again. [00:27:17] Are we good? [00:27:26] Yes, no, maybe. [00:27:30] If you are good, then can you please respond with a reaction to are we good? [00:27:37] Okay, British Kumar. [00:27:42] The optional vector extension. [00:27:46] I believe your question is about what is that? [00:27:50] Am I right? [00:27:50] What do you think it can be? [00:28:06] What do you think it can be? [00:28:08] Okay, so no problem. [00:28:24] See, when you have two completely different domains in technology. [00:28:31] One could be hardware computer architecture or the screen could be software programming. [00:28:40] Then, the phrase optional vector extension commonly refers to one of the two completely different domains. [00:28:48] And in computer architecture, risk-v-vector, we call it as RVV. [00:28:59] No, I'm not sharing anything. [00:29:02] I'm just responding to British. [00:29:09] So, in hardware architecture, the risk-v-vector, that means RVV is what we refer to as. [00:29:18] is a major addition denoted by the letter B. [00:29:22] But what is that? [00:29:23] Under the modular risk-v architecture, V was traditionally an optional standard extension. [00:29:31] It was optional. [00:29:33] But the chip designers could choose whether to include it based on their power, area, and workload needs. [00:29:42] So, that is what vector extensions means. [00:29:45] It is up to the vendors who are manufacturing it. [00:29:49] It is up to them to add it. [00:29:52] Suppose if it creates any value for them, then they will add it. [00:29:55] If there is no value, then probably they will drop it because it is optional. [00:30:02] That is what a vector extension means. [00:30:04] If there is no value for them, then they will add it to the hardware level. [00:30:08] Are we good? [00:30:12] What is used it for? [00:30:15] It is basically used at the hardware level. [00:30:19] So, suppose you have two different processors, for example, and one has support for extended GPU. [00:30:34] Another one does not have the support for extended GPU, but you have an extended GPU in your system. [00:30:40] You want to utilize the GPU, but now one of the processors will be able to actively access this because the second, they don't even have access to it. [00:30:57] So, to get access to the environment where you can run these programs, that is where exactly we will identify them as. [00:31:12] Hope it is clear. [00:31:14] Any other queries, questions? [00:31:20] Okay, cool. [00:31:21] Okay, guys, so it's 2.45. [00:31:25] Let's take a quick five-minute break. [00:31:28] We'll be back. [00:31:30] Okay, before that, let me take Sagnik Sarkar's query. [00:31:34] I'm enabling your mic, Sagnik. [00:31:39] Good afternoon, sir. [00:31:41] Yeah. [00:31:42] Sir, I would like to ask that I saw S&M 2 marks, okay? [00:31:46] Sir, sir, it's a low marks, I want to know. [00:31:52] It's a low marks? [00:31:54] I want to know, sir, I want to know. [00:31:56] Okay. [00:31:57] The entire platform takes care of the evaluation. [00:32:22] So the only thing what I can do is I can check if the right answers are marked as correct answers. [00:32:33] That's the only thing I can do. [00:32:35] Okay. [00:32:36] But is it the case with everyone that because it should reflect if it is a common problem, [00:32:46] then it should reflect to everybody because everyone will provide the right answer but they will not get marks. [00:32:53] It should impact everybody. [00:32:55] So anyhow, no problem. [00:32:57] You please write. [00:32:58] But I'm really not sure whether you'll be able to get access to what you have responded to. [00:33:04] I'm really not sure. [00:33:05] Only the coordinator will be able to help. [00:33:08] Okay, sir. [00:33:09] Thank you, sir. [00:33:13] I was just going through the assignment one and two questions and answers. [00:33:25] Except for that one, everything seems to be okay. [00:33:30] Okay, cool. [00:33:33] Nupur, quickly, please. [00:33:43] Nupur Singh. [00:33:45] Oh, yeah. [00:33:46] Hello, sir. [00:33:47] Good afternoon. [00:33:48] So actually, I had a query related to the quiz only, but it is like if you have missed any assignment, [00:33:56] like for the assignment two, I was not able to submit. [00:33:59] Is there anything that, you know, we can do or any makeup or anything? [00:34:03] Because I don't know. [00:34:05] It was a technical glitch or something. [00:34:07] Nineteenth was the last day of assignment two. [00:34:10] I tried doing it on that day. [00:34:11] I was not able to. [00:34:12] Then I mailed them on the same day, but there was no response. [00:34:17] So I thought I should ask you once. [00:34:19] Okay, let me note it down. [00:34:22] I will just put it down. [00:34:23] I will just put it across to the coordinator. [00:34:25] Yeah, sir. [00:34:26] Any makeup or any other thing that we can do, which can make up for that assignment. [00:34:30] That they will be able to, only they'll be able to come back and tell you. [00:34:35] Quiz one and assignment. [00:34:36] I have mailed actually, sir, about it, but I have not got any response. [00:34:40] So I thought I should ask you once. [00:34:42] Okay, sir. [00:34:43] It will be very helpful if you. [00:34:45] Yeah. [00:34:46] I will just put it across for their attention, but action should be taken by them only. [00:34:51] Okay, sir. [00:34:52] Cool. [00:34:53] Okay. [00:34:54] Anything else? [00:34:56] Quiz one and assignment three will come together. [00:35:00] So no worries. [00:35:02] Assignment three, I have just completed. [00:35:06] Quiz one, I will be completing. [00:35:07] Both will be opened up this week. [00:35:11] Anything else from anyone? [00:35:14] Okay, guys. [00:35:15] So let us take a five minute quick break. [00:35:18] Please come back before 2.55. [00:35:48] Please come back after 3.55. [00:35:49] Sorry, go, wait. [00:35:50] Follow. [00:35:51] We can go, wait. [00:35:53] Bye. [00:35:54] Thanks again. [00:35:55] All right. [00:35:56] Follow. [00:35:57] Do we have any questions at all? [00:35:58] Cheers. [00:35:59] Go, wait. [00:36:00] Go. [00:36:01] Go, wait. [00:36:04] Go. [00:36:05] Go, wait. [00:36:06] Go, go. [00:36:07] Go. [00:36:10] Go, go, go. [00:36:11] The time? [00:36:12] Go, go. [00:43:03] In one line, what did we understand? [00:43:11] All we understood is basically application. [00:43:15] Do not need to know the architecture. [00:43:18] Let me stop sharing. [00:43:21] Do not need to know the architecture. [00:43:24] But it does not mean that every manufacturer will have the same architecture. [00:43:32] Okay, cool. [00:43:33] Now, when we say that RISC is simple and CISC is complex, no, that is not the case. [00:43:48] How are instructions encoded? [00:43:51] What operations are represented architecturally? [00:43:55] What is the register model? [00:43:58] How is memory accessed? [00:44:01] How much work does decoding require? [00:44:05] What is the implementation strategy used? [00:44:09] Modern processors complicate any simple slogan. [00:44:13] Because the reason is, we have the processors. [00:44:22] If you take a processor that was manufactured five years back and take a processor that is manufactured today, [00:44:31] the difference is the speed, the processing speed. [00:44:36] That is where the entire RISC is all about. [00:44:40] So, definitely, if we are going to understand how they are architecting their own processor to increase the speed of the processing, [00:44:54] then we will not be able to write our code. [00:44:57] So, that is the reason applications do not need to know the internal architecture of the processors. [00:45:07] But whatever not supported, the manufacturer is going to provide us instructions that can be plugged in into the operating system. [00:45:21] So, the basic application is going to talk only to the operating system. [00:45:28] And the operating system is going to talk to the hardware. [00:45:32] That does not change. [00:45:35] And anything that is changing at the hardware level, [00:45:38] the manufacturer is expected to get that information available at the operating system level. [00:45:47] That's the reason. [00:45:49] Whenever we look at, for example, if we are going to look at a laptop, [00:45:54] and we are going to perform a design job, [00:45:58] let us assume that we are doing some cloth designing. [00:46:03] We are into that business. [00:46:04] Basically, I work with a cloth merchant, [00:46:08] and I am supposed to provide them designs for the cloth, [00:46:13] which will go for printing and into the market. [00:46:17] For that design purpose, I am using computers. [00:46:22] Now, when I am looking at the computer, [00:46:26] what am I going to look at? [00:46:27] I am going to look at the highest processing speed, [00:46:32] because the design is going to, [00:46:36] when I am going to work on the design, [00:46:39] I will be using an application. [00:46:41] That application might be creating multiple instruction sets. [00:46:46] If those instruction sets are going to get queued and not processed faster, [00:46:55] then my application that I am using to design the cloth design [00:47:00] is not going to respond to me as fast as possible. [00:47:06] But the application that I am using [00:47:09] need not know the architecture of the processor, [00:47:15] but operating system need to know. [00:47:20] So now what I have to choose appropriately, [00:47:23] let us say that I am using an application called X. [00:47:28] That application is helping me to create very stylish designs [00:47:36] that is going to appeal the new buyers in the market. [00:47:44] Then, obviously, I have to use that application manually, [00:47:50] like, I don't know how much time it would take, [00:47:53] because time is of essence. [00:47:54] If I miss the bus in the market, [00:47:58] then manufacturer of the clothes, [00:48:01] they may not be able to sell, [00:48:03] and business is going to get impacted. [00:48:07] So I have to use an application. [00:48:10] And if I am going to use an application, [00:48:11] what I should look at? [00:48:13] I should look at [00:48:14] what should be the appropriate processor [00:48:17] that I am going to use in my laptop. [00:48:19] Do I need to know the difference between RISC and CISC? [00:48:26] No. [00:48:27] But we need to be aware of it. [00:48:30] As a designer, I should be aware of it. [00:48:34] So CISC is a little faster. [00:48:39] RISC is a little faster. [00:48:41] I should be able to differentiate that. [00:48:44] Then, accordingly, I will choose the CPU. [00:48:49] That CPU will have a specifications. [00:48:55] Who has manufactured it? [00:48:57] What is the speed? [00:48:58] What is the specification the processor is going to give? [00:49:02] It's going to give only the speed. [00:49:05] Thus, this processor is supported by Microsoft Windows 11. [00:49:09] Because Microsoft Windows 11 [00:49:11] is the operating system that I am using in my laptop. [00:49:14] So does this processor is supported by [00:49:18] the operating system Windows 11? [00:49:23] That's all I am going to see. [00:49:26] But how my instructions [00:49:29] or the application that is going to send the instruction [00:49:32] to operating system, [00:49:34] how is it going to split [00:49:35] and how is it going to get processed? [00:49:37] Neither I should be aware of it, [00:49:39] nor it is required for my application [00:49:42] to be aware of it. [00:49:46] But [00:49:46] let's not [00:49:50] simply tell on the face of it, [00:49:54] okay, this is simple and this is complex. [00:49:57] It's not that way. [00:49:58] It is about the number of instructions. [00:50:03] Suppose if I'm using this PowerPoint, [00:50:05] I'm sharing it with you all. [00:50:10] So the instruction from my laptop [00:50:12] is basically to share this [00:50:15] over the meeting. [00:50:19] But [00:50:21] there is an instruction [00:50:23] at your laptop [00:50:24] to receive this share. [00:50:28] And that's the reason [00:50:29] we are able to see the same object [00:50:31] in this meeting window. [00:50:34] Whether it is Teams, [00:50:36] whether it is Zoom, [00:50:37] whether it is any other application. [00:50:40] Again, it is synchronizing [00:50:42] at some point of time. [00:50:45] Now I'm talking. [00:50:47] I'm explaining. [00:50:48] You are all listening. [00:50:52] So this requires [00:50:53] not only the CPU, [00:50:55] but also there is an application [00:50:57] which recognizes my voice, [00:51:00] modulates it, [00:51:01] and then demodulates [00:51:03] at your end [00:51:04] with no delay. [00:51:08] If there is a delay, [00:51:10] then there will be an overlap [00:51:12] of what I am talking [00:51:14] and what you are hearing. [00:51:14] So now, [00:51:18] here in this example, [00:51:20] the component [00:51:20] that is going to code [00:51:22] and decode, [00:51:24] modulate and demodulate, [00:51:27] is that application [00:51:28] which is recognizing my voice [00:51:30] and giving it to my CPU, [00:51:34] it gets processed, [00:51:36] transferred to you [00:51:38] via other network. [00:51:38] So here, [00:51:42] actually, [00:51:42] is there no delay? [00:51:46] There is a delay. [00:51:48] The only reason is [00:51:49] which we are not able [00:51:50] to experience [00:51:51] that delay is [00:51:52] it is in [00:51:54] microseconds. [00:51:56] You are not hearing [00:51:58] the moment I talk. [00:52:00] There is a delay [00:52:01] of microsecond. [00:52:04] So we are not able [00:52:05] to experience [00:52:06] the delay. [00:52:07] But what if [00:52:08] if it is in milliseconds? [00:52:12] Should we be able [00:52:13] to experience [00:52:15] the delay? [00:52:16] How? [00:52:18] A great analogy is [00:52:20] suppose if you are [00:52:21] communicating with [00:52:23] someone far away, [00:52:24] be it Middle East [00:52:26] or US [00:52:26] or Europe [00:52:27] over the phone, [00:52:28] let it be [00:52:29] a WhatsApp call. [00:52:32] Or if someone [00:52:34] calls from [00:52:34] the other end [00:52:35] to you [00:52:36] on your mobile [00:52:36] using an application, [00:52:40] there you will be [00:52:41] able to experience [00:52:43] that delay. [00:52:45] The moment [00:52:46] you receive [00:52:48] the voice, [00:52:50] you will respond. [00:52:51] but the other [00:52:53] end will be [00:52:54] thinking at least [00:52:55] for half a second [00:52:58] or quarter a second [00:52:59] they will be [00:53:00] wondering like [00:53:01] why you are [00:53:03] not responding. [00:53:05] Because that [00:53:06] is taking [00:53:08] microseconds [00:53:09] delay, [00:53:10] so we are able [00:53:11] to experience [00:53:12] it. [00:53:13] After one or two [00:53:15] calls, you will [00:53:15] get used to, [00:53:16] you will wait [00:53:17] to hear fully [00:53:19] and then you [00:53:19] will respond. [00:53:20] the other [00:53:21] end also [00:53:22] will wait [00:53:24] until they [00:53:24] hear and [00:53:26] then they [00:53:26] will respond. [00:53:28] So we are [00:53:28] losing, [00:53:29] we are losing [00:53:30] that microseconds [00:53:31] in our [00:53:31] conversation [00:53:32] and that [00:53:33] loss is only [00:53:34] because [00:53:35] there is a [00:53:37] delay in [00:53:37] modulation and [00:53:38] demodulation [00:53:39] in microseconds. [00:53:42] Here, [00:53:42] suppose if you [00:53:43] are connected [00:53:44] over [00:53:44] a low [00:53:47] bandwidth network, [00:53:48] let us take [00:53:49] an example. [00:53:50] Everyone else [00:53:51] in this call [00:53:52] are connected [00:53:52] with high [00:53:54] bandwidth. [00:53:56] Everyone else [00:53:57] will receive [00:53:57] with a [00:53:58] millisecond [00:53:59] delay. [00:54:01] Since you are [00:54:01] connected with [00:54:02] a low [00:54:02] bandwidth, [00:54:03] it could be [00:54:04] possible that [00:54:04] there is an [00:54:07] overlap in what [00:54:08] you are receiving [00:54:08] because the [00:54:10] packets get [00:54:11] mixed up. [00:54:13] So the delay [00:54:14] is not only [00:54:14] because of the [00:54:15] network but also [00:54:16] because of the [00:54:17] modulation and [00:54:18] demodulation, [00:54:19] the processor [00:54:20] is performing [00:54:20] both at my [00:54:22] end as well [00:54:23] as at your [00:54:24] end. [00:54:26] So [00:54:26] nowadays [00:54:28] for all the [00:54:30] trainings, [00:54:32] there will be [00:54:34] requirements, [00:54:35] system requirements [00:54:36] for the [00:54:37] training that [00:54:38] would be [00:54:38] provided. [00:54:39] I'm sure [00:54:39] when IIT [00:54:41] Patna would [00:54:41] have [00:54:41] suggested you [00:54:43] what should [00:54:44] be the [00:54:44] minimum system [00:54:45] requirements for [00:54:46] you to [00:54:46] attend these [00:54:47] classes. [00:54:49] What they [00:54:50] specify there [00:54:52] is the [00:54:52] minimal [00:54:52] requirement, [00:54:54] ensuring that [00:54:55] there is no [00:54:55] delay in [00:54:56] you hearing [00:54:58] me or you [00:54:58] seeing us. [00:55:01] What does [00:55:02] that system [00:55:02] requirements mean? [00:55:03] that means [00:55:05] this particular [00:55:07] meeting where [00:55:08] so many [00:55:09] participants are [00:55:09] going to be [00:55:10] there, from [00:55:11] the application [00:55:12] side, they [00:55:13] have taken [00:55:14] care of using [00:55:14] the right [00:55:15] setup and [00:55:16] right [00:55:16] configuration, [00:55:18] but they [00:55:19] expect you [00:55:20] also to [00:55:22] map with [00:55:23] the requirement. [00:55:24] So, whether [00:55:27] it is [00:55:27] encoding, [00:55:29] whether it [00:55:29] is semantics, [00:55:31] or whether [00:55:32] it is [00:55:33] implementation [00:55:33] choices, [00:55:36] definitely [00:55:36] there is [00:55:38] going to be [00:55:39] an expectation [00:55:40] in terms of [00:55:41] what both [00:55:42] the ends [00:55:43] need to [00:55:43] have. [00:55:46] Let us [00:55:46] take another [00:55:47] example, the [00:55:48] same class. [00:55:50] Assume that [00:55:51] I'm operating [00:55:52] my laptop [00:55:53] with iOS. [00:55:56] I have a [00:55:56] Mac, and [00:55:59] I am [00:55:59] operating on [00:56:00] it. [00:56:00] I can [00:56:00] open this [00:56:01] application. [00:56:03] So, the [00:56:04] PowerPoint can [00:56:04] be opened in [00:56:05] a Macintosh [00:56:06] laptop. [00:56:08] The Macintosh [00:56:08] laptop also can [00:56:09] connect to [00:56:10] this team's [00:56:11] meeting. [00:56:13] I will be [00:56:14] able to [00:56:14] share. [00:56:16] You will [00:56:16] also be [00:56:17] able to [00:56:18] see it, [00:56:19] hear me as [00:56:20] well. [00:56:21] How is that [00:56:22] possible? [00:56:23] that is [00:56:24] basically done [00:56:25] by the [00:56:26] operating [00:56:26] system at [00:56:27] the both [00:56:27] end. [00:56:28] Neither your [00:56:30] application, [00:56:31] whatever [00:56:31] teams you [00:56:33] have used [00:56:33] to connect, [00:56:36] whichever [00:56:37] environment [00:56:37] you are [00:56:38] using, [00:56:40] still it [00:56:41] works. [00:56:42] Because the [00:56:43] communication is [00:56:44] happening at [00:56:44] the application [00:56:45] layer, [00:56:47] not at the [00:56:49] data layer, [00:56:50] not at the [00:56:51] network layer, [00:56:52] not only at [00:56:54] the physical [00:56:54] layer. [00:56:56] Do we [00:56:56] require all [00:56:57] these layers? [00:56:58] Yes, we do [00:56:58] require, but we [00:57:00] don't need to [00:57:00] know. [00:57:01] Now, how many [00:57:02] of you can [00:57:03] understand that [00:57:05] we are connected [00:57:05] over the [00:57:06] teams and the [00:57:07] packets are being [00:57:08] received and [00:57:09] sent from your [00:57:10] Wi-Fi [00:57:12] interface? [00:57:12] will you be [00:57:15] able to see [00:57:16] like how many [00:57:16] packets have been [00:57:17] transmitted and [00:57:18] received? [00:57:19] Yes, you [00:57:20] can, if you [00:57:21] have a tool to [00:57:22] identify the [00:57:24] traffic on your [00:57:25] network interface. [00:57:26] So, there also [00:57:28] we are going to [00:57:28] use an [00:57:29] application to [00:57:30] know that. [00:57:34] Now, end of [00:57:35] the day, that [00:57:37] application what [00:57:38] you are using [00:57:38] is going to [00:57:40] communicate with [00:57:41] the operating [00:57:41] system of what [00:57:42] it is looking [00:57:43] for. [00:57:44] Then the [00:57:45] system call [00:57:46] is made to [00:57:47] the hardware [00:57:48] and the [00:57:49] hardware is [00:57:50] going to [00:57:50] respond back. [00:57:52] Here, in this [00:57:53] case, the [00:57:53] hardware is the [00:57:54] storage. [00:57:54] storage, because [00:57:56] all this [00:57:56] information are [00:57:57] getting stored [00:57:58] either in a [00:57:58] hard disk or [00:58:00] in a volume in [00:58:00] the cloud. [00:58:02] For example, [00:58:03] this recording. [00:58:04] Tomorrow, if you [00:58:05] are going to [00:58:06] run this [00:58:06] recording to [00:58:07] understand the [00:58:08] session, where [00:58:10] is it getting [00:58:11] access to from [00:58:12] the storage? [00:58:14] So, the [00:58:15] storage access [00:58:16] speed, your [00:58:18] connectivity speed [00:58:20] should actually [00:58:23] synchronize. [00:58:24] which is [00:58:26] better, I'm [00:58:28] not getting [00:58:28] into that [00:58:28] argument. [00:58:30] Maybe your [00:58:31] connection is [00:58:31] a better [00:58:32] connection, but [00:58:33] the retrieval [00:58:33] IO speed for [00:58:35] the storage is [00:58:36] lesser, but [00:58:39] your communication [00:58:40] is getting [00:58:41] adjusted to the [00:58:42] speed of the [00:58:43] data retrieval. [00:58:46] So, that is [00:58:46] the reason I was [00:58:47] asking you what [00:58:48] is closer to you [00:58:48] in your day-to-day [00:58:49] life, so that I [00:58:51] can give the [00:58:52] right examples to [00:58:53] you, nothing [00:58:53] more than that [00:58:54] or asking that [00:58:55] question. [00:58:57] So, this way, if [00:58:58] you look at it, [00:58:59] any which way, [00:59:00] whatever we use, [00:59:02] however we [00:59:03] utilize our [00:59:05] resources, the [00:59:07] communication is [00:59:08] going to happen [00:59:09] between the [00:59:11] application layer [00:59:12] and yourself. [00:59:12] now, in that [00:59:16] case, do we [00:59:16] really need to [00:59:17] know, that's [00:59:18] what I said, the [00:59:19] practicals that I [00:59:20] am showing, it's [00:59:21] not a session [00:59:24] where I'm [00:59:24] expecting you to [00:59:26] memorize the [00:59:26] commands. [00:59:28] It is just a [00:59:29] demonstration saying [00:59:30] that, yes, there [00:59:32] are opportunities [00:59:33] for us to get to [00:59:34] know the details [00:59:35] in case if we [00:59:37] want to. [00:59:39] So, you are a [00:59:40] developer, you [00:59:40] just wanted to [00:59:41] know how many [00:59:43] threads are [00:59:46] possible to open [00:59:46] parallelly. [00:59:49] That is an [00:59:49] information, but [00:59:51] the implementation [00:59:52] is, it is not [00:59:55] going to be the [00:59:56] same number what [00:59:57] it is displaying. [00:59:58] It will definitely [00:59:59] be having the [01:00:01] ability to run [01:00:02] more threads than [01:00:04] what it has [01:00:04] communicated to [01:00:05] you. [01:00:06] So, how do you [01:00:07] get that number? [01:00:08] You get that [01:00:08] number from the [01:00:09] application. [01:00:10] You don't get that [01:00:11] number from the [01:00:12] processor saying [01:00:13] that I have 12 [01:00:14] cores, I can run [01:00:15] so many. [01:00:16] No, you are not [01:00:18] getting it from the [01:00:19] CPU, you are [01:00:19] getting it from the [01:00:20] application. [01:00:21] Application in turn [01:00:22] is communicating [01:00:22] with the operating [01:00:23] system and the [01:00:24] operating system is [01:00:25] going to communicate [01:00:26] with the hardware. [01:00:28] The hardware [01:00:28] configuration is [01:00:29] going to communicate [01:00:31] to the operating [01:00:32] system and the [01:00:33] operating system is [01:00:34] going to communicate [01:00:34] to your application [01:00:35] and the number is [01:00:36] getting displayed on [01:00:37] the screen. [01:00:40] In any of these [01:00:41] examples, one thing [01:00:42] is very common. [01:00:44] One is that the [01:00:45] application that we [01:00:46] are using or the [01:00:48] user ourselves need [01:00:52] not know which [01:00:54] architecture the [01:00:54] system is running [01:00:55] because the [01:00:59] instruction set will [01:01:00] be created by the [01:01:01] operating system [01:01:02] understood by the [01:01:04] operating system and [01:01:05] executed by the [01:01:06] microarchitecture. [01:01:08] So there are no [01:01:09] issues because end [01:01:10] of the day our [01:01:11] application also is [01:01:12] going to communicate [01:01:12] only with the [01:01:13] operating system. [01:01:14] As long as our [01:01:15] application is [01:01:16] compatible to the [01:01:16] operating system in [01:01:17] which we are [01:01:18] running, we are [01:01:19] good. [01:01:21] Let us take another [01:01:22] example. [01:01:24] I have a shell [01:01:24] script. [01:01:25] I have a Windows [01:01:28] laptop. [01:01:29] Will I be able to [01:01:30] run that shell script [01:01:31] in my Windows [01:01:32] laptop? [01:01:33] No. [01:01:34] I can't run it. [01:01:36] I need to have an [01:01:38] interface which will [01:01:38] understand the [01:01:40] statements in the [01:01:40] script. [01:01:42] Execute. [01:01:43] So even this [01:01:44] challenge is addressed [01:01:46] by the operating [01:01:47] system level. [01:01:49] So between application [01:01:50] and operating system, [01:01:51] there are no [01:01:52] mediators. [01:01:55] Normally it is [01:01:56] expected to communicate [01:01:57] to the operating [01:01:58] system directly. [01:01:59] And if operating [01:02:00] system can understand [01:02:02] your instruction, [01:02:04] then it can create [01:02:05] a set of instructions [01:02:06] to be given it to [01:02:07] each of the hardware [01:02:08] to get back your [01:02:10] result. [01:02:12] Be it a database, [01:02:14] be it a data warehouse, [01:02:15] be it like text file. [01:02:18] The instruction set [01:02:19] needs to be clear on [01:02:20] how to open the text [01:02:21] file, what to look [01:02:22] for in the text file [01:02:22] and what to display. [01:02:24] If I have just [01:02:24] asked for all the [01:02:26] logs in the last [01:02:27] 10 minutes, [01:02:30] that's what the [01:02:30] query I might [01:02:31] probably send to [01:02:32] the log file. [01:02:34] The log file is [01:02:35] going to give us [01:02:35] only that information. [01:02:40] So whether [01:02:42] we use whatever [01:02:45] type of [01:02:46] processors, [01:02:48] all we need to [01:02:49] ensure is it is [01:02:50] supported by our [01:02:51] operating system. [01:02:56] Now, [01:02:58] when we are [01:03:00] looking at a [01:03:01] mature or [01:03:01] historically evolved [01:03:03] ISC, [01:03:06] if an [01:03:06] x86 CPU [01:03:08] internally [01:03:09] decomposes [01:03:11] one instruction [01:03:12] into multiple [01:03:13] micro operations, [01:03:14] has it stopped [01:03:17] being [01:03:17] x86 [01:03:18] 64-bit [01:03:20] operating system? [01:03:22] The answer [01:03:23] is no. [01:03:26] Because it is [01:03:26] 64-bit [01:03:27] operating system [01:03:28] and if it is [01:03:29] an x86 [01:03:30] processor, [01:03:32] can support [01:03:32] 64-bit [01:03:33] operating system, [01:03:34] doesn't mean [01:03:35] that the [01:03:36] instructions [01:03:36] is going to [01:03:37] go as is. [01:03:39] Again, [01:03:39] it is going [01:03:40] to be broken [01:03:40] down into the [01:03:41] sets and it [01:03:42] will be provided. [01:03:42] And this, [01:03:44] the new [01:03:44] architecture [01:03:45] understands. [01:03:47] So the [01:03:48] internal [01:03:48] decomposition [01:03:49] is an [01:03:49] implementation [01:03:50] choice. [01:03:52] The ISA [01:03:53] contract [01:03:54] remains [01:03:55] the software [01:03:57] visible [01:03:58] reference [01:03:58] only. [01:04:01] Now, [01:04:02] apply the [01:04:03] same question [01:04:03] to three [01:04:05] architecture [01:04:06] families. [01:04:09] Let us [01:04:10] assume that [01:04:10] we have [01:04:11] three different [01:04:11] architecture [01:04:12] families. [01:04:16] X86 [01:04:16] 64-bit [01:04:17] is widely [01:04:20] deployed in [01:04:21] desktops, [01:04:23] workstations, [01:04:24] or even in [01:04:24] servers. [01:04:26] It uses [01:04:26] variable length [01:04:28] instruction [01:04:29] encodings and [01:04:30] has a large [01:04:31] historically evolved [01:04:33] instruction set. [01:04:35] Because [01:04:35] x86 is [01:04:36] pretty old [01:04:38] processing [01:04:39] architecture [01:04:40] and it [01:04:41] has evolved [01:04:42] over so [01:04:42] many [01:04:43] years. [01:04:46] So the [01:04:47] modern [01:04:47] implementations [01:04:48] can decode [01:04:49] instructions [01:04:50] into [01:04:50] simpler [01:04:52] internal [01:04:52] operations. [01:04:54] How are [01:04:54] they attaining [01:04:55] the speed, [01:04:56] the processing [01:04:57] speed? [01:04:57] it is not [01:05:00] that it [01:05:01] got the [01:05:01] capability [01:05:02] to process [01:05:04] at a [01:05:04] higher [01:05:04] speed. [01:05:06] It is [01:05:06] just that [01:05:07] as the [01:05:08] ability to [01:05:09] break down [01:05:10] the instruction [01:05:11] set, [01:05:12] instead of [01:05:13] three, [01:05:14] it can [01:05:14] break down [01:05:15] into 35 [01:05:15] and it [01:05:17] can give [01:05:17] it to [01:05:18] multiple [01:05:18] CPUs, [01:05:20] get it [01:05:20] processed [01:05:20] and get [01:05:21] it back [01:05:21] and integrate [01:05:22] the [01:05:22] response. [01:05:26] So [01:05:26] it's [01:05:32] broad [01:05:32] software [01:05:33] compatibility [01:05:34] can be a [01:05:34] major [01:05:35] advantage, [01:05:35] but [01:05:36] performance [01:05:37] still depends [01:05:38] on the [01:05:38] specific [01:05:39] processor [01:05:40] and the [01:05:40] workload [01:05:40] that we [01:05:42] are giving [01:05:43] it to [01:05:43] the [01:05:43] processor. [01:05:46] So for [01:05:47] a company [01:05:48] with years [01:05:49] of validated [01:05:50] native [01:05:51] software, [01:05:53] what [01:05:54] costs [01:05:55] might [01:05:55] arise [01:05:56] from [01:05:56] changing [01:05:57] the [01:05:57] architecture? [01:06:00] Because [01:06:01] we have [01:06:01] understood [01:06:02] that [01:06:02] X86 [01:06:03] has been [01:06:03] evolving [01:06:04] for a [01:06:05] long [01:06:05] time [01:06:05] now. [01:06:07] So [01:06:08] if it [01:06:09] has to [01:06:10] evolve, [01:06:10] then definitely [01:06:11] there is [01:06:11] going to [01:06:12] be some [01:06:12] changing [01:06:12] and those [01:06:14] changes [01:06:15] could be [01:06:15] related to [01:06:16] architecture [01:06:16] as well. [01:06:17] So what [01:06:22] is that? [01:06:24] What cost [01:06:24] might arise [01:06:25] from changing [01:06:27] the [01:06:27] architecture? [01:06:28] One is [01:06:29] recompilation. [01:06:31] Second is [01:06:32] identifying the [01:06:33] dependency [01:06:34] replacements. [01:06:36] The third [01:06:37] is the [01:06:37] testing cost [01:06:38] because you [01:06:39] are changing [01:06:39] the architecture [01:06:40] so that [01:06:40] needs to [01:06:41] be tested [01:06:41] and [01:06:42] ensure [01:06:42] that there [01:06:43] are no [01:06:44] loopholes [01:06:44] in the [01:06:44] new [01:06:45] architecture [01:06:45] vendor [01:06:48] support [01:06:49] do we [01:06:52] have [01:06:52] and the [01:06:53] performance [01:06:54] validation. [01:06:57] The [01:06:57] operational [01:06:57] changes [01:06:58] are also [01:06:59] need to [01:07:00] be considered [01:07:01] that also [01:07:02] might [01:07:02] increase [01:07:04] the cost. [01:07:04] Cost [01:07:05] does not [01:07:05] mean only [01:07:06] dollar, [01:07:08] not only [01:07:09] rupee. [01:07:10] Cost [01:07:10] includes [01:07:10] even the [01:07:11] effort, [01:07:12] the time [01:07:12] taken to [01:07:12] process [01:07:13] everything. [01:07:15] So [01:07:16] when you [01:07:20] are thinking [01:07:20] about the [01:07:20] ARM64, [01:07:22] it is a [01:07:24] useful [01:07:25] contrast [01:07:26] compared to [01:07:27] XH6. [01:07:29] But we [01:07:30] must still [01:07:30] separate [01:07:31] architecture [01:07:32] from product [01:07:33] implementation. [01:07:35] Whether you [01:07:35] are going [01:07:36] to use [01:07:36] an ARM64 [01:07:37] or whether [01:07:38] you are [01:07:38] going to [01:07:39] use an [01:07:39] XH6 [01:07:40] 64 bit [01:07:41] and if [01:07:42] you want [01:07:42] to install [01:07:43] for example [01:07:44] Ubuntu [01:07:44] operating [01:07:45] system, [01:07:47] definitely [01:07:47] the [01:07:47] operating [01:07:48] system [01:07:48] is [01:07:48] because [01:07:49] the [01:07:49] communication [01:07:50] is going [01:07:50] to be [01:07:51] enabled [01:07:51] with the [01:07:52] operating [01:07:52] system [01:07:53] implementation [01:07:53] only. [01:07:55] So if [01:07:55] you are [01:07:55] going to [01:07:56] implement [01:07:56] the [01:07:56] operating [01:07:56] system [01:07:57] in [01:07:57] ARM64 [01:07:59] system, [01:08:04] then the [01:08:04] operating [01:08:04] system [01:08:05] should be [01:08:05] capable [01:08:06] of [01:08:06] producing [01:08:06] those [01:08:07] type of [01:08:08] instructions [01:08:08] to the [01:08:09] processor. [01:08:10] If it [01:08:11] is still [01:08:11] maintaining [01:08:12] the [01:08:12] XH6 [01:08:13] instruction [01:08:14] set [01:08:15] generation [01:08:15] for the [01:08:17] processor, [01:08:17] then it [01:08:18] would [01:08:19] fail. [01:08:20] So whatever [01:08:21] type of [01:08:22] architecture [01:08:22] you have, [01:08:23] whether it [01:08:23] is XH6 [01:08:24] or whether [01:08:24] it is [01:08:26] ARM, [01:08:27] whether it [01:08:28] is 32 [01:08:28] bit, [01:08:28] whether it [01:08:29] is 64 [01:08:29] bit, [01:08:30] end of [01:08:31] the day [01:08:31] what matters [01:08:32] is the [01:08:32] instructional [01:08:32] set that [01:08:33] we are [01:08:34] providing [01:08:35] to the [01:08:36] hardware. [01:08:37] Who is [01:08:37] providing [01:08:38] that [01:08:38] instructional [01:08:38] set? [01:08:40] Basically [01:08:40] the [01:08:40] operating [01:08:43] system. [01:08:45] So how [01:08:45] the operating [01:08:46] system will [01:08:46] get to [01:08:47] know the [01:08:47] instructions [01:08:48] from the [01:08:48] applications [01:08:50] that it [01:08:50] is running? [01:08:52] So for [01:08:52] example, [01:08:53] I actually [01:08:56] muted myself [01:08:56] and said [01:08:57] that, [01:08:58] okay, [01:08:58] it's a [01:08:58] break. [01:08:59] And I [01:08:59] was displaying [01:09:00] an [01:09:00] PowerPoint [01:09:02] slide. [01:09:03] So [01:09:05] basically [01:09:06] up to [01:09:07] five o'clock [01:09:09] we have [01:09:11] classes. [01:09:11] So after [01:09:12] five, [01:09:12] what? [01:09:14] After [01:09:14] five, [01:09:15] what? [01:09:16] Are we [01:09:17] going to [01:09:17] be continuing [01:09:18] in this [01:09:18] class? [01:09:19] The answer [01:09:19] is no. [01:09:20] So is [01:09:21] this [01:09:21] processor [01:09:22] going to [01:09:23] continue [01:09:24] to work? [01:09:26] It [01:09:27] depends. [01:09:28] If you [01:09:28] have still [01:09:29] kept your [01:09:30] laptop [01:09:30] on, [01:09:32] then the [01:09:33] answer is [01:09:33] yes, [01:09:34] because [01:09:35] the entity [01:09:36] has been [01:09:37] longer [01:09:38] with the [01:09:38] organization [01:09:39] than [01:09:39] normal [01:09:40] users. [01:09:42] So we [01:09:42] should be [01:09:42] able to [01:09:43] identify, [01:09:44] close it, [01:09:44] and then [01:09:44] make it [01:09:45] run. [01:09:47] So [01:09:48] this is [01:09:50] the [01:09:50] ideology [01:09:53] that we [01:09:54] would like [01:09:54] to get [01:09:56] into rather [01:09:56] than [01:09:57] to understand, [01:09:58] okay, [01:09:59] is this [01:09:59] a VM [01:10:00] RAM? [01:10:01] We can [01:10:02] also work [01:10:03] on VM [01:10:03] RAM. [01:10:13] Okay, [01:10:14] cool. [01:10:16] So now [01:10:17] there is a [01:10:19] maturity, [01:10:20] there is [01:10:20] historically [01:10:20] a world [01:10:21] ISA for [01:10:22] x86, [01:10:23] but if [01:10:24] we are [01:10:25] going to [01:10:25] use an [01:10:26] ARM, [01:10:26] then the [01:10:27] same [01:10:27] instruction [01:10:27] set, [01:10:28] may not [01:10:29] work. [01:10:31] So the [01:10:32] operating [01:10:32] system will [01:10:33] create a [01:10:33] new set [01:10:34] of [01:10:34] instruction [01:10:34] sets for [01:10:35] that [01:10:35] particular [01:10:36] ARM [01:10:37] chip, [01:10:38] the [01:10:38] processor. [01:10:39] Now the [01:10:40] processor will [01:10:41] be able to [01:10:41] understand the [01:10:42] input, [01:10:44] execute, [01:10:44] and provide [01:10:44] the results [01:10:45] back as [01:10:46] well. [01:10:48] So this [01:10:49] is pretty [01:10:50] much that we [01:10:51] need to [01:10:51] achieve in [01:10:52] every session [01:10:53] that we [01:10:54] are planning. [01:10:56] Okay, [01:10:57] cool. [01:10:58] Now the [01:10:59] architecture and [01:11:00] implementation we [01:11:01] understand. [01:11:04] The [01:11:05] implementation is [01:11:06] more closer [01:11:08] to the [01:11:08] operating system [01:11:09] than the [01:11:10] actual [01:11:10] architecture. [01:11:12] Because as [01:11:12] long as the [01:11:12] operating system [01:11:13] knows how [01:11:14] to go around [01:11:16] the application [01:11:16] and use it [01:11:17] for its [01:11:17] benefit, [01:11:20] then nobody [01:11:21] is going to [01:11:22] complain. [01:11:22] Whether it is [01:11:22] 30 seconds, [01:11:23] whether it is [01:11:24] 90 seconds, [01:11:24] doesn't [01:11:27] matter. [01:11:29] But if [01:11:29] that is [01:11:29] not aware [01:11:30] of, [01:11:32] that's not [01:11:34] aware of, [01:11:35] then [01:11:35] definitely we [01:11:37] make them [01:11:39] to sit. [01:11:43] Okay, [01:11:44] cool. [01:11:44] the next [01:11:48] thing. [01:11:50] We [01:11:51] understood [01:11:51] ARM-R [01:11:52] x86. [01:11:53] It makes [01:11:54] no difference [01:11:54] for our [01:11:55] application [01:11:55] instructions [01:11:56] because it [01:11:57] is going [01:11:58] via the [01:11:58] operating [01:11:58] system. [01:11:59] And as [01:11:59] long as [01:12:00] the operating [01:12:01] system can [01:12:01] support ARM [01:12:02] architecture, [01:12:04] we are [01:12:04] good. [01:12:04] can we [01:12:12] conclude [01:12:13] that any [01:12:14] ARM-64 [01:12:15] processor [01:12:16] uses less [01:12:18] energy than [01:12:18] x86 [01:12:20] 64-bit [01:12:21] processor? [01:12:23] We should [01:12:24] not be [01:12:24] concluding. [01:12:25] Maybe this [01:12:26] ARM-64-bit [01:12:28] processor is [01:12:28] processing your [01:12:29] quest faster [01:12:31] compared to [01:12:31] the x86 [01:12:32] 64. [01:12:33] It's [01:12:34] pretty much [01:12:34] possible, [01:12:35] I don't [01:12:35] deny. [01:12:37] But we [01:12:37] should also [01:12:38] acknowledge, [01:12:39] yes, [01:12:40] what we [01:12:41] could is [01:12:42] only this [01:12:43] much. [01:12:45] Unless we [01:12:45] realize that [01:12:46] in our [01:12:46] process, [01:12:49] it's going [01:12:50] to be [01:12:50] okay, [01:12:56] cool. [01:12:58] I can [01:12:58] see the [01:12:58] responses. [01:13:02] Fair enough. [01:13:03] So now, [01:13:05] we have [01:13:07] understood [01:13:08] difference [01:13:08] between [01:13:09] x86 [01:13:09] ARM. [01:13:11] Now, [01:13:12] the [01:13:12] RISC. [01:13:14] RISC-V is [01:13:16] an open [01:13:16] standard [01:13:18] instruction [01:13:18] set [01:13:19] architecture. [01:13:20] It's [01:13:20] open [01:13:20] standard. [01:13:22] Its [01:13:22] specifications [01:13:23] are structured [01:13:25] around base [01:13:26] instruction [01:13:26] set and [01:13:27] extensions. [01:13:27] for example, [01:13:30] if we [01:13:32] are going [01:13:32] to speak [01:13:32] about [01:13:33] RV641, [01:13:35] it defines [01:13:35] 32 [01:13:36] integer [01:13:37] registers [01:13:38] with [01:13:41] x0 [01:13:43] hardwired [01:13:43] to 0. [01:13:45] So all [01:13:45] the registers [01:13:46] hardwired to [01:13:47] 0. [01:13:48] That means [01:13:49] the value [01:13:49] is 0. [01:13:50] the compressed [01:13:52] extension [01:13:53] supports [01:13:54] 16-bit [01:13:55] instruction [01:13:56] encodings [01:13:56] alongside [01:13:57] the base [01:13:59] 32-bit [01:14:00] instruction [01:14:00] encodings [01:14:01] as well. [01:14:03] So open [01:14:04] standardization [01:14:05] does not [01:14:07] mean [01:14:07] every [01:14:08] implementation [01:14:09] has to be [01:14:10] identical. [01:14:11] It need [01:14:11] not. [01:14:13] Though we [01:14:13] think so, [01:14:15] but it [01:14:15] need not. [01:14:16] So open [01:14:22] standardization [01:14:22] does not [01:14:23] mean every [01:14:24] implementation [01:14:24] has identical [01:14:25] capabilities or [01:14:26] maturity. [01:14:27] It need [01:14:27] not be. [01:14:30] Now the [01:14:31] open ISC [01:14:33] does not [01:14:33] mean every [01:14:34] implementation, [01:14:35] whether it [01:14:35] is a tool [01:14:36] chain, [01:14:36] board, [01:14:36] or production [01:14:37] ecosystem, [01:14:38] is equally [01:14:39] mature. [01:14:40] Yeah, [01:14:40] that is also [01:14:40] correct. [01:14:42] But we [01:14:42] cannot assume [01:14:43] that it [01:14:44] has all the [01:14:44] identical [01:14:45] capabilities. [01:14:46] or maturity, [01:14:47] but we [01:14:48] can definitely [01:14:48] understand that [01:14:54] ecosystem is [01:14:56] equally [01:14:56] mature. [01:14:57] That means [01:14:58] whether you [01:14:59] use ARM, [01:15:00] ARM also is [01:15:01] mature if [01:15:02] not more. [01:15:05] So [01:15:06] now [01:15:09] what should [01:15:12] a team [01:15:12] verify before [01:15:14] committing a [01:15:14] product [01:15:15] to a [01:15:16] RISC-V [01:15:17] platform? [01:15:22] What is [01:15:23] that they [01:15:23] have to [01:15:24] commit? [01:15:25] Verify. [01:15:26] They have to [01:15:27] verify the [01:15:27] extensions, [01:15:29] the core [01:15:29] implementation, [01:15:31] compiler or [01:15:32] the tool [01:15:32] chain, [01:15:33] the operating [01:15:34] system, [01:15:35] and driver [01:15:35] support, [01:15:37] debugging, [01:15:38] performance, [01:15:38] supply chain, [01:15:39] long-term [01:15:40] support, [01:15:40] and software [01:15:41] ecosystem. [01:15:42] A big [01:15:43] list of [01:15:45] things. [01:15:45] Though we [01:15:46] are not [01:15:46] bothered about [01:15:47] what is [01:15:48] architecture [01:15:49] being used, [01:15:50] and we [01:15:51] are also [01:15:51] aware that [01:15:52] how it is [01:15:54] getting [01:15:55] processed and [01:15:55] what is [01:15:56] getting [01:15:56] processed. [01:15:56] so what [01:16:02] next? [01:16:06] What [01:16:06] opportunities and [01:16:07] responsibilities [01:16:08] come with an [01:16:09] extensible open [01:16:10] IAC standard? [01:16:11] That is what we [01:16:12] need to [01:16:12] understand. [01:16:18] Now let us [01:16:19] put the three [01:16:19] families side [01:16:21] by side and [01:16:22] compare the [01:16:23] system. [01:16:23] not just [01:16:24] the [01:16:25] instruction [01:16:25] names. [01:16:28] So this [01:16:29] is an [01:16:29] architectural [01:16:30] comparison [01:16:31] with whole [01:16:33] evaluation [01:16:33] system. [01:16:37] So now [01:16:38] this table [01:16:39] is a [01:16:40] starting point, [01:16:40] not a [01:16:41] ranking. [01:16:42] Don't even [01:16:42] think that [01:16:44] this table [01:16:45] is going [01:16:46] to rank [01:16:46] me for [01:16:47] XH6, [01:16:48] ARM, [01:16:49] RISQ. [01:16:49] be known [01:16:50] one. [01:16:52] This is [01:16:52] just a [01:16:54] starting [01:16:54] point. [01:16:59] So check [01:17:00] exact ISA [01:17:01] versions and [01:17:02] extensions. [01:17:05] We should [01:17:06] do that. [01:17:08] And [01:17:09] register [01:17:10] model is [01:17:11] architectural. [01:17:14] The speed [01:17:15] and energy [01:17:15] consumption [01:17:16] are implementation [01:17:18] and workload [01:17:19] questions. [01:17:20] When you [01:17:22] can say [01:17:22] that this [01:17:22] process is [01:17:23] better and [01:17:24] it processes [01:17:24] faster, [01:17:26] response is [01:17:27] really good, [01:17:28] then it is [01:17:30] related to the [01:17:31] implementation, [01:17:32] not the [01:17:32] manufacturing. [01:17:34] How that [01:17:34] has been [01:17:35] implemented? [01:17:39] So [01:17:39] the speed [01:17:43] and energy [01:17:44] consumption [01:17:44] are implementation [01:17:46] and workload [01:17:47] questions. [01:17:48] and the [01:17:49] ecosystem [01:17:49] support can [01:17:51] change over [01:17:52] time and [01:17:53] differs by [01:17:54] market segment. [01:17:58] So we [01:17:58] also need to [01:17:59] be pretty [01:18:00] much aware [01:18:01] of it. [01:18:03] It does [01:18:04] speak about [01:18:04] impacting the [01:18:05] certification [01:18:06] as well. [01:18:07] integration. [01:18:09] Okay, cool. [01:18:13] Now, [01:18:15] there is [01:18:16] internal [01:18:16] registers, [01:18:17] 16 GPRs, [01:18:18] 31 GPRs, [01:18:19] and 32 [01:18:20] GPRs. [01:18:21] the ecosystem [01:18:24] very broad [01:18:25] legacy plus [01:18:26] native [01:18:26] software, [01:18:27] which one? [01:18:28] It has all [01:18:29] the native [01:18:29] softwares made [01:18:31] available, [01:18:32] broad legacy. [01:18:34] But if you're [01:18:34] looking at [01:18:35] ARM64, [01:18:36] it's like [01:18:36] broad mobile, [01:18:38] embedded and [01:18:39] cloud growth. [01:18:40] Most of the [01:18:41] clouds will use [01:18:42] this, [01:18:43] ARM64. [01:18:44] that's why [01:18:44] when you're [01:18:49] trying to [01:18:50] install [01:18:50] Ubuntu [01:18:52] operating system [01:18:52] in a virtual [01:18:53] machine that [01:18:53] you have got [01:18:54] it from the [01:18:54] AWS, [01:18:57] are we [01:18:58] installing [01:18:58] x86? [01:19:00] Are we [01:19:01] installing [01:19:01] the ARM? [01:19:03] Most of the [01:19:04] Ubuntu [01:19:04] operating system [01:19:05] will identify [01:19:06] it automatically [01:19:07] and then [01:19:08] restores the [01:19:08] file to [01:19:09] install and [01:19:10] design. [01:19:12] So that is [01:19:12] what happens [01:19:13] when you [01:19:18] try to [01:19:18] understand [01:19:19] and try [01:19:22] to make [01:19:22] others [01:19:22] understand [01:19:23] as well. [01:19:29] Okay. [01:19:30] So now [01:19:31] when we are [01:19:36] speaking about [01:19:37] how to [01:19:37] finish, [01:19:38] we have to [01:19:38] finish with [01:19:39] the selection [01:19:40] lens. [01:19:41] What is the [01:19:42] selection lens? [01:19:43] the compatibility [01:19:44] performance [01:19:45] platform cost. [01:19:47] That is what [01:19:47] the x86-64 [01:19:49] provides. [01:19:50] In case of [01:19:50] ARM64, [01:19:52] the selection [01:19:52] lens is [01:19:53] basically [01:19:54] the workload, [01:19:56] power, [01:19:57] consumption, [01:19:59] to support. [01:20:00] That is [01:20:00] wider. [01:20:01] And if you're [01:20:02] speaking about [01:20:03] rescue systems, [01:20:04] the selection [01:20:08] lens should [01:20:09] look for [01:20:10] customization, [01:20:13] openness and [01:20:14] implementation [01:20:14] maturity. [01:20:16] Three, [01:20:17] what we [01:20:18] need to [01:20:18] So basically, [01:20:26] when we are [01:20:27] comparing specific [01:20:29] instruction, [01:20:31] architecture [01:20:31] versions [01:20:32] and [01:20:32] processors, [01:20:33] guidance is [01:20:36] that [01:20:36] never infer [01:20:38] performance [01:20:39] from the [01:20:40] SA label. [01:20:43] We won't [01:20:44] do that. [01:21:01] that. [01:21:02] Okay, [01:21:04] cool. [01:21:07] Now, [01:21:08] we have [01:21:10] seen different [01:21:10] architecture [01:21:11] comparison and [01:21:12] we have [01:21:12] evaluated the [01:21:13] architectures from [01:21:15] the whole [01:21:16] system [01:21:16] perspective. [01:21:16] Now, [01:21:21] which column [01:21:22] would you [01:21:23] use to [01:21:23] decide a [01:21:24] production [01:21:24] migration? [01:21:26] We have [01:21:26] three columns. [01:21:28] So which [01:21:28] one would [01:21:29] you use [01:21:30] to decide, [01:21:31] I want to [01:21:32] migrate my [01:21:33] production [01:21:33] environment [01:21:34] from on [01:21:36] premise to [01:21:36] AWS cloud? [01:21:38] The requirement. [01:21:40] Now, [01:21:40] how do we [01:21:41] decode this [01:21:42] requirement? [01:21:43] also like, [01:21:46] if you want [01:21:47] to bring up [01:21:47] a production [01:21:48] environment, [01:21:48] how will [01:21:49] you bring [01:21:49] it up? [01:21:51] That's [01:21:52] exactly [01:21:52] this. [01:22:06] Okay. [01:22:09] So no [01:22:09] single column. [01:22:10] If you look [01:22:11] at it, [01:22:11] no single [01:22:12] column we [01:22:12] should be [01:22:13] referring to [01:22:15] design on [01:22:15] a production [01:22:16] system, [01:22:18] we should [01:22:18] combine all [01:22:19] ISA [01:22:19] requirements, [01:22:20] software [01:22:21] compatibility, [01:22:22] benchmarks, [01:22:23] operational [01:22:24] support, [01:22:24] cost, [01:22:25] and energy [01:22:26] measurements. [01:22:27] It's not [01:22:27] that okay, [01:22:28] the RISC-V, [01:22:30] it has [01:22:30] more [01:22:31] customization, [01:22:32] openness, [01:22:34] documentation, [01:22:35] maturity. [01:22:37] Again, [01:22:37] these are [01:22:38] all our [01:22:38] claims. [01:22:42] so now, [01:22:50] actually we [01:22:52] need to [01:22:52] practice making [01:22:53] that decision [01:22:54] under different [01:22:54] constraints, [01:22:55] not just [01:22:56] one benchmark, [01:22:58] not just [01:22:58] operational support [01:22:59] requirement, [01:23:01] not the cost [01:23:02] and the energy, [01:23:04] but we need [01:23:04] to do it [01:23:05] under different [01:23:05] constraints. [01:23:08] So now, [01:23:10] what is [01:23:12] that? [01:23:16] Which [01:23:16] architecture? [01:23:19] So in [01:23:20] groups, [01:23:22] let us [01:23:22] choose a [01:23:23] candidate for [01:23:23] the cloud [01:23:24] analytics [01:23:24] service, [01:23:26] or for [01:23:27] the smartphone, [01:23:28] or the [01:23:29] edge device, [01:23:31] and custom [01:23:31] member design. [01:23:33] you may [01:23:36] choose [01:23:36] different [01:23:36] architectures [01:23:37] for each [01:23:38] of them, [01:23:40] allowing. [01:23:43] So, [01:23:44] your job [01:23:45] is to [01:23:46] name [01:23:46] the [01:23:51] universal [01:23:52] benefits. [01:23:53] It is to [01:23:54] state [01:23:54] assumptions, [01:23:56] risks, [01:23:57] and evidence [01:23:58] you would [01:23:58] gather better [01:23:59] are before [01:24:00] winning it. [01:24:03] okay. [01:24:14] So now, [01:24:14] for cloud [01:24:18] analytics, [01:24:19] or for [01:24:20] mobile, [01:24:21] or the [01:24:22] edge, [01:24:24] whether [01:24:25] prompt for [01:24:26] workload, [01:24:26] or battery, [01:24:27] or thermal [01:24:28] limits, [01:24:29] ecosystem [01:24:30] and integration, [01:24:31] or whether [01:24:32] it is for [01:24:32] embedded [01:24:33] design, [01:24:35] the required [01:24:36] extensions, [01:24:37] long-term [01:24:37] support, [01:24:38] toolchain, [01:24:41] safety and [01:24:41] verification [01:24:42] on supply. [01:24:46] So, [01:24:47] what I would [01:24:48] say is, [01:24:48] let us just [01:24:49] take five [01:24:50] minutes. [01:24:52] Take one [01:24:53] service, [01:24:53] whether it [01:24:54] is a cloud [01:24:54] analytics [01:24:55] service, [01:24:56] or smartphone, [01:24:56] or edge [01:24:57] device, [01:24:58] or even a [01:24:59] custom embedded [01:25:00] design, [01:25:00] one of these [01:25:01] cases, [01:25:02] and I [01:25:04] want you [01:25:04] to choose [01:25:05] the [01:25:05] architecture [01:25:06] that you [01:25:06] feel is [01:25:08] an app [01:25:08] for each [01:25:09] of the [01:25:09] use cases. [01:25:12] And [01:25:12] capture the [01:25:13] assumptions, [01:25:14] what you [01:25:14] are assuming. [01:25:16] Somebody [01:25:16] might be [01:25:16] just assuming [01:25:17] that it [01:25:18] is a [01:25:18] great [01:25:18] copy [01:25:18] mark, [01:25:19] so I'm [01:25:19] not [01:25:19] going [01:25:20] to. [01:25:32] Just take [01:25:32] five [01:25:32] minutes and [01:25:33] please, [01:25:34] for one [01:25:35] of these, [01:25:36] state your [01:25:37] assumptions, [01:25:38] risks, [01:25:38] evidence [01:25:39] required, [01:25:40] and what [01:25:40] benchmark [01:25:41] would change [01:25:42] your mind [01:25:43] by using [01:25:44] what I [01:25:45] initially [01:25:45] thought [01:25:46] ARM, [01:25:46] but then [01:25:47] not only [01:25:50] that, [01:25:50] you also [01:25:51] have a [01:25:51] electron. [01:25:58] Okay. [01:26:00] Let me put [01:26:01] a timer [01:26:02] for five [01:26:03] minutes. [01:26:04] I will be [01:26:04] stop sharing [01:26:05] this screen. [01:26:07] Hope you [01:26:07] would have [01:26:08] chosen one [01:26:10] of these [01:26:10] areas. [01:26:11] all we [01:26:12] require is [01:26:12] assumptions, [01:26:13] risks, [01:26:14] evidence [01:26:14] required, [01:26:15] and what [01:26:15] benchmark [01:26:16] would change [01:26:18] your mind. [01:26:18] I'm not [01:26:19] asking about [01:26:19] the current [01:26:19] benchmark. [01:26:21] What [01:26:21] benchmark [01:26:22] would be [01:26:24] required? [01:26:26] I agree. [01:26:27] It depends [01:26:27] on the [01:26:27] requirements. [01:26:31] Netmon, [01:26:32] CETAR, [01:26:32] we can [01:26:33] see a [01:26:34] PCAP. [01:26:35] Okay. [01:26:35] Perfectly [01:26:36] fine. [01:26:37] RTCP [01:26:37] dump, [01:26:38] we need [01:26:38] to take [01:26:39] for the [01:26:39] packet race. [01:26:40] Yes, [01:26:40] we can. [01:26:41] But all [01:26:42] these are [01:26:42] applications. [01:26:43] Again, [01:26:44] are hardware [01:26:45] by themselves. [01:26:47] Whatever is [01:26:48] mentioned here, [01:26:48] all are [01:26:49] applications [01:26:49] only. [01:26:51] So that's [01:26:52] why I said [01:26:52] let me take [01:26:52] a common [01:26:53] application. [01:27:06] Probably [01:27:07] I'll just [01:27:07] put a [01:27:08] timer [01:27:10] for three [01:27:10] minutes [01:27:11] because [01:27:11] we [01:27:11] already [01:27:12] spent [01:27:12] some [01:27:12] time. [01:27:14] For [01:27:14] three [01:27:14] minutes [01:27:14] we [01:27:15] will [01:27:16] spend [01:27:20] in [01:27:20] that. [01:27:22] But I [01:27:22] would be [01:27:23] looking for [01:27:24] the [01:27:26] responses. [01:27:26] screen [01:27:34] requirements [01:27:35] went away. [01:27:36] Let me [01:27:36] stop [01:27:36] sharing [01:27:37] and [01:27:37] share [01:27:37] the [01:27:38] requirements [01:27:38] again. [01:27:39] Not an [01:27:40] issue. [01:27:40] I'll [01:27:40] keep [01:27:40] the [01:27:41] requirements [01:27:42] there on [01:27:44] the [01:27:44] screen. [01:27:46] Let me [01:27:46] track the [01:27:49] time. [01:27:49] Okay. [01:27:56] I'll [01:27:59] be [01:27:59] away [01:28:00] from [01:28:00] the [01:28:00] mic [01:28:00] and [01:28:00] I [01:28:01] should [01:28:01] be [01:28:01] back. [01:28:26] the [01:28:28] time. [01:28:28] I [01:28:29] can't [01:28:29] see you [01:28:30] in [01:28:30] the [01:28:30] way. [01:28:31] I [01:28:31] can't [01:28:31] see you [01:28:32] in [01:28:32] the [01:28:32] way. [01:28:33] I [01:28:34] can't [01:28:34] see you [01:28:35] in [01:28:36] the [01:28:36] way. [01:33:30] Yes, guys, I was looking for responses in the chat. [01:33:34] Let me first stop sharing the screen. [01:34:29] Most of you have given the appropriate response. [01:34:33] And second thing is, [01:34:35] when the Linux operating system [01:34:38] first came into the market, [01:34:44] at that point of time, [01:34:47] not many CPU options were available in the industry. [01:34:52] So in that scenario, [01:34:53] how the operating system was utilizing the CPU, [01:34:57] the way the operating system was written, [01:35:02] handling the instruction set, [01:35:04] that was different. [01:35:06] So all this is fine. [01:35:10] But again, what operating system? [01:35:13] When you say cloud analytics service, [01:35:15] x86-64, [01:35:18] or even ARM64 also is fine. [01:35:22] Fair enough. [01:35:23] What was in your mind [01:35:26] in terms of the operating system [01:35:27] when you said cloud analytics x86-64-bit? [01:35:33] So was it a Unix operating system [01:35:35] or was it a Windows operating system? [01:35:39] And what was your application, [01:35:43] analysis application that you are using? [01:35:46] That environment also matters. [01:35:48] So actually there is no definite answer to this. [01:35:54] But as long as we are able to map [01:35:58] what is the ability of [01:36:00] the operating system [01:36:03] in communicating with the hardware, [01:36:05] if that was [01:36:08] also kept in the mind, [01:36:11] then definitely yes. [01:36:15] You are in the right direction. [01:36:17] Keep in mind, [01:36:18] there is no right or wrong in this. [01:36:20] It's only the appropriateness. [01:36:23] That's the reason I gave you [01:36:24] the Linux operating system. [01:36:26] The Linux operating system, [01:36:28] the way the operating system [01:36:29] was handling the instruction set [01:36:32] was a little different [01:36:33] from the Windows operating system [01:36:36] or the Unix operating system [01:36:37] at that point of time. [01:36:38] That is the reason [01:36:39] anybody who was trying [01:36:41] to run their applications in Linux, [01:36:44] they started experiencing [01:36:45] their application is responding faster. [01:36:48] It is not their code. [01:36:50] It's the code that is written [01:36:52] inside the operating system [01:36:53] on how the instruction set [01:36:55] is bifurcated [01:36:58] and then aggregated [01:36:59] towards the result. [01:37:02] Okay, cool. [01:37:04] Now, [01:37:05] yeah, we took the break. [01:37:07] Fair enough. [01:37:10] Now, [01:37:12] the input-output. [01:37:17] The mechanisms, [01:37:19] whatever [01:37:20] we have seen, [01:37:24] these mechanisms [01:37:24] solve different problems. [01:37:28] Interrupts notify the system [01:37:30] that an event needs attention. [01:37:34] Polling takes [01:37:35] whether work is available. [01:37:37] DMA allows [01:37:39] a capable controller [01:37:41] to move data [01:37:42] between a device [01:37:43] and the memory [01:37:43] without the CPU [01:37:46] copying every byte. [01:37:48] So, a real system [01:37:52] often combines [01:37:53] all of them. [01:37:56] Interrupts, [01:37:58] holds, [01:37:59] and what is DMA? [01:38:01] Direct memory access. [01:38:03] So, direct memory access [01:38:05] means without involving [01:38:07] the CPU [01:38:08] to copy every byte. [01:38:09] the keyboard. [01:38:14] for example, [01:38:16] the moment you type. [01:38:19] Keyboard is also a hardware. [01:38:22] The moment the user types, [01:38:24] it has to be recognized. [01:38:25] Or, a simple periodic status register. [01:38:32] For example, [01:38:33] polling. [01:38:35] Or a network packet [01:38:36] traveling between the networks. [01:38:40] Or the data transfer, [01:38:42] SSD transfer. [01:38:44] The network packet [01:38:46] or the DMA, [01:38:48] in these two cases, [01:38:51] TPU is not getting involved. [01:38:54] The classic example is, [01:38:56] this example I always give [01:39:00] in any of the sessions. [01:39:04] Some of you may be aware. [01:39:06] Some of you may not be aware. [01:39:07] Just try to [01:39:08] understand the concept. [01:39:11] Let us take an example [01:39:13] of a stock exchange. [01:39:15] What happens [01:39:16] in the stock exchange? [01:39:18] The business is basically [01:39:19] to buy or sell [01:39:21] the company scripts [01:39:23] at a definite value. [01:39:25] That's all is the business. [01:39:28] I bought [01:39:28] company A [01:39:30] at 56 [01:39:31] two months back. [01:39:34] And now, [01:39:35] the price is at 64. [01:39:38] And I am happy with [01:39:39] 8 rupees per share. [01:39:41] I wanted to sell. [01:39:44] And somebody is interested [01:39:45] to buy at 64. [01:39:47] They are buying it. [01:39:48] I am selling at 64. [01:39:50] Somebody is buying at 64. [01:39:53] That is the business [01:39:54] of the stock exchange. [01:39:55] But now, [01:39:57] stock exchange is using [01:39:58] system. [01:40:01] And now, [01:40:02] this [01:40:02] buying and selling [01:40:04] can happen [01:40:04] over the counter. [01:40:06] And I say [01:40:07] over the counter. [01:40:08] The counter is [01:40:09] no more [01:40:10] physical counter. [01:40:11] It is a virtual counter. [01:40:15] And the transaction [01:40:16] is valid. [01:40:16] Now, [01:40:18] when I am [01:40:20] quoting at 64, [01:40:22] if somebody is [01:40:24] interested to buy [01:40:25] at 64.05, [01:40:28] as a businessman, [01:40:31] I would be interested [01:40:32] to sell at 64.05 [01:40:35] only. [01:40:36] Because I will get [01:40:38] that 5, I say, [01:40:39] extra per share. [01:40:40] But if my system [01:40:42] is a little slower [01:40:43] to receive that [01:40:44] offer, [01:40:46] then I will be [01:40:49] losing 5 paces. [01:40:50] This is from the [01:40:51] business perspective. [01:40:54] But from the system [01:40:55] perspective, [01:40:57] why am I losing [01:40:58] that offer? [01:41:00] the polling [01:41:04] has not [01:41:05] happened [01:41:06] properly. [01:41:09] Because at [01:41:10] defined intervals, [01:41:14] for a defined [01:41:15] cycles, [01:41:17] only it will [01:41:18] check. [01:41:20] And then it [01:41:21] will interpret [01:41:22] and interrupt. [01:41:26] So it will be [01:41:27] in microseconds, [01:41:29] not even in [01:41:30] milliseconds, [01:41:31] in microseconds. [01:41:33] The moment I say [01:41:34] I am ready to [01:41:35] sell at 64, [01:41:36] if somebody has [01:41:37] said 64, [01:41:39] the deal would [01:41:40] be made by [01:41:40] the system. [01:41:42] If it was a [01:41:43] manual system, [01:41:44] I would know [01:41:44] somebody else is [01:41:45] interested at [01:41:46] 64.05. [01:41:50] has come [01:41:51] first, [01:41:52] the offer, [01:41:53] and 64 has [01:41:54] come second, [01:41:56] I would have [01:41:57] got 64.05. [01:42:00] So now the [01:42:01] system is [01:42:01] deciding. [01:42:03] So I should [01:42:04] ensure that [01:42:06] there is no [01:42:08] delay, [01:42:09] even in [01:42:10] microseconds. [01:42:11] Even in [01:42:11] nanoseconds, [01:42:12] there should not [01:42:12] be any delay. [01:42:15] But the server [01:42:16] that is dealing [01:42:17] with, [01:42:18] I am also [01:42:19] using a client, [01:42:20] and another [01:42:20] buyer is also [01:42:21] using a client, [01:42:23] and server is [01:42:24] the intermediary, [01:42:25] it makes the [01:42:27] deal. [01:42:28] The moment [01:42:29] the deal is [01:42:30] made, [01:42:32] the information [01:42:32] should go to [01:42:33] me as a [01:42:34] seller, [01:42:35] the information [01:42:36] should come to [01:42:37] you as a [01:42:37] buyer, [01:42:38] that the deal [01:42:39] is done. [01:42:41] Now as a [01:42:42] third person [01:42:44] who quoted [01:42:44] at 64.05, [01:42:46] who missed [01:42:46] the purchase, [01:42:49] what will he [01:42:51] think about, [01:42:52] oh man, [01:42:52] what is this [01:42:53] system? [01:42:54] It's not [01:42:55] that way. [01:42:57] It is not [01:42:57] that way. [01:42:59] Even the [01:43:00] keyboard [01:43:01] confirmation, [01:43:03] changing the [01:43:04] rate and the [01:43:05] keyboard [01:43:05] confirmation, [01:43:06] that also [01:43:09] plays a role. [01:43:11] That is the [01:43:11] reason if you [01:43:12] have ever [01:43:13] got a chance [01:43:14] to see any [01:43:16] of the stock [01:43:17] broker's office, [01:43:19] what they [01:43:20] will have [01:43:21] is a [01:43:23] today's [01:43:24] technology, [01:43:26] especially [01:43:26] from the [01:43:27] hardware [01:43:27] perspective. [01:43:29] They may [01:43:30] use a [01:43:31] little old [01:43:31] application, [01:43:33] not upgraded, [01:43:35] but they [01:43:36] will be [01:43:36] using today's [01:43:38] technology from [01:43:39] the hardware [01:43:39] perspective. [01:43:41] Do they [01:43:42] know that, [01:43:43] okay, [01:43:43] this hardware [01:43:43] makes a [01:43:44] difference? [01:43:45] They know [01:43:46] logically, [01:43:47] but they [01:43:47] don't know [01:43:48] technically. [01:43:48] here, [01:43:52] some of the [01:43:53] applications [01:43:54] in today's [01:43:55] world, [01:43:56] they have [01:43:57] the ability [01:43:58] to directly [01:43:58] speak to [01:43:59] the device [01:43:59] controllers. [01:44:02] Some of the [01:44:03] languages, [01:44:04] and even [01:44:04] especially in [01:44:05] data, [01:44:06] if somebody [01:44:07] has seen so [01:44:08] many of you [01:44:09] responding, [01:44:10] data is your [01:44:11] primary area. [01:44:13] Let us assume [01:44:14] that you are [01:44:14] into the data [01:44:15] engineering [01:44:16] space. [01:44:18] Now, [01:44:20] you are the [01:44:21] one who is [01:44:22] going to send [01:44:23] the data as [01:44:25] a report to [01:44:25] the business [01:44:26] analytics team. [01:44:29] You are [01:44:30] receiving the [01:44:30] quotes from [01:44:32] the stock [01:44:32] exchange about [01:44:34] the transactions [01:44:34] that has [01:44:35] happened, [01:44:36] and it is [01:44:37] coming [01:44:37] continuously. [01:44:40] So your [01:44:40] network is [01:44:41] involved because [01:44:43] it has to [01:44:43] receive. [01:44:44] your memory [01:44:46] is involved [01:44:47] because it [01:44:48] has to [01:44:48] store temporarily. [01:44:50] Your CPU [01:44:51] is involved [01:44:52] because your [01:44:53] application is [01:44:53] going to [01:44:54] pick it up, [01:44:56] process it, [01:44:58] because the [01:45:00] data that is [01:45:00] coming in [01:45:01] may be of [01:45:02] some format. [01:45:04] Example is [01:45:04] date and [01:45:06] time. [01:45:07] It may be [01:45:08] in DD, [01:45:09] MM, [01:45:09] YY format. [01:45:10] you are [01:45:12] storing it [01:45:12] in MMDD, [01:45:14] YY format, [01:45:14] so that [01:45:15] bit of a [01:45:16] second [01:45:16] transition [01:45:20] needs to [01:45:20] happen. [01:45:22] It goes [01:45:23] into the [01:45:23] database or [01:45:24] data warehouse, [01:45:27] then the [01:45:27] business analytics [01:45:28] dashboard [01:45:30] displays that. [01:45:32] All this [01:45:33] has to [01:45:34] happen [01:45:34] the same [01:45:37] interval of [01:45:38] time. [01:45:40] That's the [01:45:41] reason, [01:45:41] except for [01:45:42] storing the [01:45:44] data as [01:45:45] soon as [01:45:45] you receive [01:45:46] in the [01:45:47] memory, [01:45:48] and then [01:45:50] process it [01:45:51] for the [01:45:51] date format. [01:45:53] After that, [01:45:54] you will not [01:45:54] touch the [01:45:55] CPU, [01:45:55] you will [01:45:55] skip the [01:45:56] CPU, [01:45:58] directly [01:45:58] access the [01:45:59] memory, [01:45:59] put it into [01:46:00] the storage. [01:46:01] application [01:46:02] will [01:46:03] get from [01:46:04] the storage [01:46:05] and display [01:46:05] it on [01:46:06] the [01:46:06] dashboard. [01:46:10] Even [01:46:10] in this [01:46:12] case, [01:46:13] you have [01:46:14] an interrupt [01:46:14] which [01:46:17] converts, [01:46:18] that's an [01:46:19] interrupt. [01:46:20] It's a [01:46:21] polling that [01:46:22] happens. [01:46:23] The data [01:46:24] is getting [01:46:24] moved from [01:46:25] memory to [01:46:26] the database [01:46:26] directly, [01:46:28] so there [01:46:28] is a [01:46:28] DMA [01:46:29] happening. [01:46:31] all these [01:46:33] three [01:46:33] together [01:46:34] completes [01:46:35] your [01:46:35] transaction [01:46:38] as a [01:46:38] data [01:46:39] engineer. [01:46:41] But what [01:46:41] if the [01:46:42] business [01:46:42] analytics [01:46:43] comes back [01:46:44] and tell [01:46:44] you [01:46:44] that [01:46:47] refresh [01:46:48] rate is [01:46:49] very [01:46:51] slow? [01:46:53] What I [01:46:54] am seeing [01:46:54] transaction [01:46:56] now [01:46:56] got [01:46:58] displayed a [01:46:58] second [01:46:59] before [01:46:59] with the [01:47:01] competitor. [01:47:04] So then [01:47:05] what is [01:47:06] the solution? [01:47:07] The same [01:47:08] exchange. [01:47:12] Padware [01:47:12] is same, [01:47:14] application [01:47:14] is same, [01:47:15] but they [01:47:16] are getting [01:47:16] a split [01:47:17] of a [01:47:18] second [01:47:18] before. [01:47:20] They can [01:47:20] take a [01:47:21] decision [01:47:21] before [01:47:22] and they [01:47:23] can [01:47:24] transact [01:47:25] a second [01:47:25] before. [01:47:27] They are [01:47:28] missing. [01:47:30] That is [01:47:30] the reason [01:47:31] they will [01:47:32] not [01:47:32] compromise [01:47:33] on the [01:47:33] hardware. [01:47:35] They will [01:47:36] say, [01:47:36] okay, [01:47:36] if this [01:47:36] has to [01:47:37] be [01:47:37] upgraded, [01:47:39] please go [01:47:40] ahead and [01:47:40] upgrade. [01:47:40] I don't [01:47:42] want. [01:47:42] It is [01:47:43] just a [01:47:43] matter of [01:47:44] second. [01:47:45] We may [01:47:45] say, [01:47:46] how does [01:47:46] it matter? [01:47:48] Because we [01:47:48] don't know [01:47:49] the value [01:47:50] of it. [01:47:52] The [01:47:52] reliant [01:47:52] share, [01:47:53] if we [01:47:54] get [01:47:55] the share [01:47:57] at another [01:47:58] 5 pice [01:47:59] less, [01:48:01] we are [01:48:02] buying [01:48:02] 1,000 [01:48:03] shares, [01:48:04] 1,000 into [01:48:05] 5 pice. [01:48:06] that's [01:48:08] the [01:48:08] loss, [01:48:09] business [01:48:09] loss. [01:48:11] In [01:48:11] that [01:48:11] type of [01:48:12] businesses, [01:48:14] every [01:48:15] pice [01:48:15] counts. [01:48:18] If that [01:48:18] is the [01:48:19] case, [01:48:20] then we [01:48:21] cannot [01:48:22] compromise [01:48:22] on our [01:48:24] processing [01:48:25] abilities. [01:48:28] Another [01:48:29] classic [01:48:29] example is [01:48:31] the [01:48:31] medical [01:48:32] transcription. [01:48:36] Medical [01:48:36] transcription [01:48:36] is a [01:48:37] business [01:48:37] on its [01:48:38] own. [01:48:39] Basically, [01:48:39] what they [01:48:40] do, [01:48:40] they [01:48:40] basically [01:48:40] transcribe [01:48:41] the [01:48:42] doctor's [01:48:43] prescription, [01:48:46] store it [01:48:47] the data. [01:48:49] Not only [01:48:50] that, [01:48:52] suppose if [01:48:52] an x-ray [01:48:53] is taken [01:48:53] now, [01:48:55] that x-ray [01:48:55] results comes [01:48:56] to the [01:48:57] system, [01:48:58] and you [01:48:59] will transcribe [01:49:00] that and [01:49:00] put it back [01:49:01] to the [01:49:01] doctor. [01:49:03] The entire [01:49:04] system is [01:49:04] in place. [01:49:05] who has [01:49:06] suggested [01:49:07] for an [01:49:08] x-ray, [01:49:08] for whom [01:49:09] it has [01:49:10] been taken, [01:49:12] the results [01:49:12] have been [01:49:13] pushed, [01:49:14] and [01:49:14] displayed on [01:49:16] the doctor's [01:49:17] screen. [01:49:19] What is [01:49:19] we don't [01:49:20] carry the [01:49:20] x-ray [01:49:21] film to [01:49:21] the [01:49:22] doctor's [01:49:23] home, [01:49:24] and then [01:49:24] put it [01:49:26] in a [01:49:26] frame, [01:49:28] where you [01:49:29] lit the [01:49:29] light and [01:49:30] see the [01:49:30] x-ray? [01:49:30] No. [01:49:32] The days [01:49:32] are gone. [01:49:32] The moment [01:49:34] the x-ray [01:49:35] is taken [01:49:36] from the [01:49:37] x-ray [01:49:37] room, [01:49:37] you come [01:49:38] back and [01:49:38] go to [01:49:38] the doctor's [01:49:39] room, [01:49:40] the result [01:49:41] is available [01:49:41] in the [01:49:42] doctor's [01:49:42] screen. [01:49:44] So why [01:49:45] they have [01:49:46] done this? [01:49:48] They have [01:49:48] done this [01:49:48] for their [01:49:49] own [01:49:49] efficiency. [01:49:52] But now, [01:49:54] even the [01:49:54] x-ray [01:49:54] film is [01:49:55] going to [01:49:56] be available [01:49:56] in the [01:49:56] doctor's [01:49:57] screen, [01:49:58] and they [01:49:59] will be [01:49:59] able to [01:50:00] see it [01:50:00] in the [01:50:00] screen [01:50:00] itself [01:50:01] and [01:50:01] diagnose [01:50:02] it. [01:50:02] In [01:50:04] these [01:50:05] type of [01:50:05] things, [01:50:07] normal [01:50:08] diagnosis, [01:50:08] it's [01:50:09] fine. [01:50:10] Today, [01:50:10] you don't [01:50:11] do tomorrow [01:50:12] because the [01:50:12] doctor has [01:50:13] slept at [01:50:13] 2 o'clock. [01:50:15] It has [01:50:16] come at [01:50:16] 2 o'clock, [01:50:17] so the [01:50:17] doctor could [01:50:18] not [01:50:18] diagnose. [01:50:20] But that [01:50:20] cannot be [01:50:21] the case [01:50:22] in a [01:50:22] cancer [01:50:22] institute. [01:50:23] Right? [01:50:25] So there [01:50:26] would be [01:50:27] a lot [01:50:27] of patients [01:50:28] and it [01:50:30] is very, [01:50:30] very important [01:50:31] that the [01:50:32] doctor sees [01:50:32] it at [01:50:33] the [01:50:33] time they [01:50:34] have [01:50:34] requested [01:50:34] for. [01:50:36] Next, [01:50:36] medication [01:50:37] cycle is [01:50:38] going to [01:50:38] be [01:50:38] dependent [01:50:38] on it. [01:50:41] Entire [01:50:41] cycle is [01:50:42] systemized, [01:50:45] computerized [01:50:46] is what [01:50:46] they say. [01:50:48] In this [01:50:48] entire thing, [01:50:49] do you [01:50:50] think that [01:50:50] only interrupt [01:50:51] or only [01:50:52] polling or [01:50:52] only DMA [01:50:53] is helping [01:50:55] them to [01:50:56] achieve this? [01:50:56] know. [01:50:58] It is [01:50:58] all the [01:50:59] three. [01:51:01] The [01:51:02] CPU also [01:51:02] plays a [01:51:03] role, [01:51:04] Mario [01:51:04] also plays [01:51:05] a role, [01:51:06] and DMA [01:51:07] also plays [01:51:08] a role. [01:51:11] Combination [01:51:11] of these [01:51:12] three, [01:51:12] it actually [01:51:13] coexists [01:51:14] and helps [01:51:16] each other [01:51:16] to make [01:51:18] the things [01:51:18] move faster. [01:51:20] Very, [01:51:20] very layman's [01:51:22] term. [01:51:23] The three [01:51:23] coexists [01:51:24] just to [01:51:27] make things [01:51:28] faster, [01:51:29] not only [01:51:30] that, [01:51:30] to also [01:51:31] make things [01:51:31] accurate. [01:51:35] What if [01:51:35] the x-ray [01:51:37] is taken [01:51:37] and it [01:51:38] takes like [01:51:38] 15 minutes [01:51:39] to come [01:51:41] to the [01:51:41] doctor's [01:51:41] screen, [01:51:43] and by [01:51:44] the time [01:51:45] the patient [01:51:45] has to [01:51:46] wait for [01:51:46] 10 minutes, [01:51:48] that cycle [01:51:49] continues. [01:51:50] Their business [01:51:51] cycle will [01:51:51] continue like [01:51:52] that, [01:51:53] which is [01:51:53] not going [01:51:54] to help. [01:51:55] So, [01:51:55] that is [01:51:55] the reason [01:51:56] in that [01:51:57] environment [01:51:57] also, [01:51:59] more than [01:51:59] application [01:52:00] upgrade, [01:52:01] you will [01:52:02] see most [01:52:03] of the [01:52:03] upgrades [01:52:03] happening [01:52:04] at the [01:52:04] hardware [01:52:05] level. [01:52:06] Because they [01:52:07] need a [01:52:07] very good [01:52:08] cycling, [01:52:10] we need [01:52:11] a very [01:52:11] good DMA, [01:52:13] they also [01:52:13] need a [01:52:14] very good [01:52:14] polling. [01:52:17] If this [01:52:18] cannot happen, [01:52:19] then what [01:52:20] is the [01:52:20] point of [01:52:20] having a [01:52:21] whole system? [01:52:22] now assume [01:52:24] that the [01:52:24] same [01:52:24] hospital, [01:52:26] instead of [01:52:27] having [01:52:27] patients, [01:52:28] they have [01:52:29] 30,000 [01:52:29] patients. [01:52:32] The [01:52:33] x-ray, [01:52:34] it is [01:52:36] taken only [01:52:36] between [01:52:37] 2 and [01:52:37] 5 p.m. [01:52:40] And after [01:52:40] that, [01:52:41] one hour [01:52:42] break, [01:52:42] and they [01:52:43] come and [01:52:43] take between [01:52:44] 6 and [01:52:44] 9. [01:52:45] Every three [01:52:46] hours, [01:52:46] one hour [01:52:46] break. [01:52:47] it's a [01:52:47] 24-hour [01:52:48] facility. [01:52:50] Now, [01:52:52] same [01:52:54] cycle [01:52:56] will not [01:52:57] help. [01:52:58] Now, [01:52:58] they will [01:52:59] be looking [01:52:59] for a [01:53:00] support on [01:53:00] other [01:53:01] equipments, [01:53:04] things like [01:53:04] tablet or [01:53:06] a mobile, [01:53:08] just a [01:53:10] transcribed [01:53:11] version as [01:53:12] a text [01:53:13] message. [01:53:13] it is [01:53:16] basically [01:53:16] enabling the [01:53:18] doctor to [01:53:19] see the [01:53:19] result as [01:53:20] fast as [01:53:20] possible and [01:53:22] prescribe the [01:53:22] medicine to [01:53:23] the patient. [01:53:24] That is [01:53:24] objective. [01:53:24] So, [01:53:26] in this [01:53:26] entire cycle, [01:53:28] if the [01:53:28] volume is [01:53:29] going to [01:53:29] be high, [01:53:32] will our [01:53:32] processing [01:53:33] unit [01:53:34] capable of [01:53:36] supplying that [01:53:37] expectation? [01:53:39] It will be [01:53:40] able to, [01:53:42] not on [01:53:43] its own, [01:53:45] will be [01:53:46] coupled with [01:53:47] DMA. [01:53:49] Wherever it [01:53:49] is not [01:53:50] required to [01:53:50] involve the [01:53:50] CPU, [01:53:52] let us [01:53:52] not involve [01:53:53] them. [01:53:54] Wherever it [01:53:54] is not [01:53:54] involved, [01:53:55] it is not [01:53:56] required to [01:53:56] involve the [01:53:57] memory, [01:53:58] let us [01:53:58] not involve [01:53:58] the memory. [01:54:02] And how [01:54:03] all these [01:54:04] things are [01:54:04] coming into [01:54:05] coexistence [01:54:06] in the [01:54:07] operating [01:54:08] system level? [01:54:10] So, [01:54:12] DMA can [01:54:12] do a [01:54:13] bulk [01:54:13] transfer. [01:54:15] So, [01:54:15] there are [01:54:16] like three [01:54:18] X-rays that [01:54:19] has been [01:54:19] taken in [01:54:20] 15 minutes [01:54:21] interval, [01:54:22] and in [01:54:23] an hour, [01:54:23] there are [01:54:23] 12 X-rays [01:54:24] taken from [01:54:25] the X-ray [01:54:26] machine, [01:54:27] that machine [01:54:28] will transfer [01:54:29] the data. [01:54:30] So, [01:54:31] network is [01:54:31] involved, [01:54:32] data transfer, [01:54:33] hard disk is [01:54:34] involved, [01:54:35] storage is [01:54:35] involved, [01:54:37] then it has [01:54:38] to be [01:54:39] transformed. [01:54:40] Normally, [01:54:41] this is what [01:54:43] they are [01:54:43] sending out. [01:54:44] if it is [01:54:46] of not [01:54:46] a good [01:54:47] quality, [01:54:47] there is [01:54:48] an application [01:54:48] that is [01:54:49] going to [01:54:49] make it [01:54:50] clear. [01:54:51] It will [01:54:51] not modify [01:54:52] the actuals, [01:54:54] it will [01:54:54] make the [01:54:54] actuals [01:54:55] clear. [01:54:57] So, [01:54:57] that application [01:54:58] may require a [01:54:59] processing because [01:55:00] it has to [01:55:00] clean it up. [01:55:01] It's only the [01:55:02] cleaning process [01:55:03] of the film. [01:55:05] Film means it's [01:55:06] not a physical [01:55:07] film, it is [01:55:08] just a document, [01:55:09] an image. [01:55:12] So, [01:55:12] the image is [01:55:13] coming now, [01:55:14] text is [01:55:14] coming now, [01:55:17] image will be [01:55:18] cleaned, [01:55:18] text no need [01:55:19] to modify, [01:55:21] it has to be [01:55:22] transferred over [01:55:23] the network, [01:55:24] accepted on the [01:55:25] other network, [01:55:26] write it into [01:55:27] the disk, [01:55:28] application reads [01:55:29] it, [01:55:30] transcribes it [01:55:31] and send it to [01:55:32] the doctor's [01:55:34] terminal or [01:55:35] doctor's mobile. [01:55:38] This entire [01:55:39] ecosystem is [01:55:42] totally [01:55:42] dependent on [01:55:44] these three [01:55:45] things, [01:55:47] interruption, [01:55:48] and DMA. [01:55:51] So, [01:55:52] these mechanisms [01:55:53] solve different [01:55:54] problems. [01:55:56] Interrupt doesn't [01:55:56] solve the [01:55:57] problem what [01:55:58] DMA has [01:55:59] solved. [01:56:01] DMA doesn't [01:56:02] solve the [01:56:02] polling problem. [01:56:04] Polling only [01:56:05] will receive [01:56:05] the issue [01:56:07] and solve [01:56:07] the polling [01:56:08] problem. [01:56:09] these three [01:56:12] coexist in a [01:56:13] real system [01:56:14] and the real [01:56:15] system often [01:56:16] combines them [01:56:17] to make it [01:56:17] more effective. [01:56:20] Now, [01:56:21] for a large [01:56:23] storage transfer, [01:56:25] that's why we [01:56:25] took the data [01:56:27] transfer example, [01:56:28] which mechanism [01:56:29] moves the bytes [01:56:30] and which might [01:56:32] notify completion? [01:56:34] because when the [01:56:35] data is getting [01:56:36] moved from one [01:56:37] storage area to [01:56:38] another storage [01:56:39] area, it's not [01:56:40] about only doing [01:56:41] the actual work of [01:56:42] moving the data [01:56:43] from one source [01:56:45] to another [01:56:45] target, but also [01:56:47] we need to get [01:56:48] notified as it [01:56:48] has completed the [01:56:49] job. [01:56:51] DMA may move [01:56:52] the data and [01:56:54] interrupt our [01:56:55] polling can report [01:56:56] completion depending [01:56:58] on the system. [01:57:00] It could be either [01:57:01] interrupt, which will [01:57:02] be notifying the [01:57:03] completion, or it [01:57:05] could be a polling [01:57:05] that would be [01:57:06] notifying, depending [01:57:07] upon the system [01:57:08] that has been [01:57:08] implemented. [01:57:11] So, examine the [01:57:15] event-driven [01:57:16] pathway, that is [01:57:18] interrupts. [01:57:18] So, a device or a [01:57:23] controller signals an [01:57:25] event. [01:57:26] It is just a [01:57:26] signaling of the [01:57:27] event. [01:57:29] Processor and [01:57:30] platform interrupt [01:57:32] machinery route. [01:57:36] The CPU enters the [01:57:38] appropriate handler. [01:57:41] The kernel code or a [01:57:43] driver uses the [01:57:45] source. [01:57:45] some work is [01:57:48] deferred to a [01:57:50] later context. [01:57:52] Very much [01:57:52] possible. [01:57:54] Especially in data [01:57:55] movement, confirmation [01:57:57] may be deferred, but [01:57:59] the actual movement [01:58:00] might be happening. [01:58:03] Deferred means it's [01:58:04] just a delayed [01:58:04] confirmation. [01:58:05] It is not that [01:58:06] confirmation is not [01:58:07] delivered. [01:58:09] The application may be [01:58:10] scheduled later. [01:58:11] the interrupt [01:58:13] handler does not [01:58:14] normally hand [01:58:15] control directly to [01:58:17] an application. [01:58:18] No, it won't. [01:58:19] Only to the [01:58:20] operating system. [01:58:22] Does an interrupt [01:58:23] guarantee that the [01:58:25] user application [01:58:26] processes the event [01:58:27] immediately? [01:58:30] It won't. [01:58:31] That's not its job. [01:58:34] Kernel handling, [01:58:36] queues, and [01:58:37] scheduler behavior [01:58:38] may intervene. [01:58:41] Latency must be [01:58:42] measured and [01:58:43] designed for. [01:58:46] Deferred work may [01:58:47] be due to the [01:58:47] latency also. [01:58:52] Okay. [01:58:53] Now, [01:58:56] polling is an [01:58:57] alternative of [01:58:58] checking for work. [01:58:59] when it is in [01:59:02] a loop or [01:59:04] when it is in [01:59:04] a schedule. [01:59:07] Suppose [01:59:08] I have taken [01:59:09] five X-rays [01:59:10] and I have [01:59:12] scheduled it. [01:59:13] Once in 15 [01:59:14] minutes, [01:59:14] how many [01:59:15] ever X-rays [01:59:16] have been [01:59:16] taken, [01:59:17] you please [01:59:18] upload the [01:59:18] data into [01:59:19] the server. [01:59:21] I am not [01:59:21] going to [01:59:22] upload the [01:59:22] data for [01:59:24] every X-ray [01:59:26] that has been [01:59:26] taken by the [01:59:27] technician. [01:59:27] So this is [01:59:29] scheduled. [01:59:31] Or it [01:59:32] could be on [01:59:32] a loop. [01:59:34] Once you [01:59:34] complete, [01:59:36] then you go [01:59:37] to the [01:59:37] next. [01:59:39] Then you go [01:59:39] to the [01:59:39] next. [01:59:40] On one [01:59:41] end, [01:59:41] the technician [01:59:42] might be [01:59:42] uploading the [01:59:43] data. [01:59:44] As soon as [01:59:45] they take the [01:59:45] X-rays and [01:59:46] other stuff, [01:59:47] the system [01:59:47] will get [01:59:47] uploaded. [01:59:49] But on the [01:59:49] other hand, [01:59:50] the loop [01:59:50] might be [01:59:51] taking the [01:59:53] data and [01:59:54] putting it. [01:59:55] There is no [01:59:55] schedule. [01:59:56] It is just a [01:59:57] loop. [01:59:57] the file [01:59:59] arrives, [02:00:01] initiate. [02:00:03] Wait for [02:00:04] that [02:00:04] completion. [02:00:05] Another file [02:00:06] arrives, [02:00:06] wait for the [02:00:07] completion and [02:00:08] then go take [02:00:08] the file, [02:00:09] process it and [02:00:10] upload it into [02:00:11] the server. [02:00:14] So a [02:00:14] device or [02:00:15] controller signals [02:00:16] an event. [02:00:17] When a file [02:00:18] comes into [02:00:19] the hard [02:00:19] desk, the [02:00:20] driver indicates [02:00:23] that the [02:00:23] file has [02:00:24] happened. [02:00:24] That is an [02:00:25] event. [02:00:25] the [02:00:27] processor and [02:00:28] platform [02:00:28] interrupt [02:00:29] missionary [02:00:30] route, [02:00:31] the [02:00:32] notification. [02:00:34] The CPU [02:00:34] enters the [02:00:35] approximate [02:00:36] handler. [02:00:38] But in [02:00:38] case of [02:00:39] polling, [02:00:40] trade-offs [02:00:41] depend on [02:00:41] event rate [02:00:42] and timing. [02:00:43] That is what [02:00:44] exactly is [02:00:45] scheduling and [02:00:46] looping. [02:00:48] Polling [02:00:49] checks [02:00:49] status [02:00:50] repeatedly [02:00:50] are at [02:00:53] defined [02:00:55] intervals. [02:00:57] It can be [02:00:58] simple and [02:00:59] predictable [02:00:59] or it [02:01:02] may work [02:01:02] well for [02:01:03] fast devices [02:01:04] or high [02:01:06] throughput [02:01:06] paths. [02:01:08] Either [02:01:08] a continuous [02:01:10] input that is [02:01:11] coming or [02:01:13] that is high [02:01:14] throughput or [02:01:16] your devices [02:01:18] are fast. [02:01:20] Then also [02:01:21] polling will [02:01:22] work. [02:01:23] Perfect. [02:01:24] But one [02:01:25] thing we need [02:01:25] to keep in [02:01:26] mind, the [02:01:28] frequent [02:01:28] polling consumes [02:01:29] our processor [02:01:31] time. [02:01:33] While slow [02:01:34] polling may [02:01:34] delay [02:01:34] direct detection, [02:01:38] that means if [02:01:39] you are going [02:01:39] to poll every [02:01:40] second, [02:01:43] actually, [02:01:44] X-ray files [02:01:45] are coming [02:01:45] once in [02:01:47] three seconds. [02:01:49] So that [02:01:49] means for [02:01:50] two polling, [02:01:51] you will not [02:01:51] have the [02:01:52] file and [02:01:52] the third [02:01:52] poll will [02:01:53] be able to [02:01:54] detect a [02:01:54] file. [02:01:56] So your [02:01:57] two polls [02:01:58] have consumed [02:01:59] your processing. [02:02:01] So if you [02:02:02] are not doing [02:02:03] the first [02:02:03] two polls, [02:02:04] you are [02:02:04] processing [02:02:05] power, [02:02:06] processing [02:02:07] capability [02:02:08] available for [02:02:10] something else [02:02:11] to process. [02:02:12] this is [02:02:17] frequent [02:02:18] polling. [02:02:19] Okay, let [02:02:20] me poll every [02:02:21] four seconds [02:02:22] instead of [02:02:23] every second. [02:02:25] Then [02:02:26] every second [02:02:27] when the [02:02:27] file has [02:02:27] come, I [02:02:30] will have to [02:02:30] wait until [02:02:31] for the [02:02:31] fourth second. [02:02:32] And the [02:02:32] next poll is [02:02:33] going to [02:02:33] happen only [02:02:34] at eighth [02:02:35] second. [02:02:37] If there [02:02:37] are three [02:02:38] files in [02:02:38] five, six, [02:02:39] and seven, [02:02:39] only the [02:02:40] eighth second [02:02:42] polling will [02:02:42] take all [02:02:43] the three [02:02:43] files. [02:02:45] So frequent [02:02:47] polling consumes [02:02:48] CPU time, [02:02:49] but slow [02:02:50] polling may [02:02:51] delay detection. [02:02:53] So we [02:02:54] need to have [02:02:55] the right [02:02:55] interval, [02:02:56] depends on [02:02:56] the event [02:02:57] rate. [02:02:58] What is [02:02:58] this event [02:02:59] rate? [02:03:00] How [02:03:01] frequently we [02:03:02] get files [02:03:04] available in [02:03:06] the folder? [02:03:06] if we [02:03:08] can match [02:03:10] it, or [02:03:12] if we [02:03:12] can map [02:03:13] it, and [02:03:15] then the [02:03:16] acceptable [02:03:17] latency in [02:03:18] the system [02:03:18] load also [02:03:19] can be [02:03:19] managed. [02:03:22] So [02:03:22] don't be [02:03:24] very, very [02:03:24] cautious. [02:03:26] The check [02:03:27] interval, if [02:03:28] it is [02:03:29] unknown, if [02:03:32] the device [02:03:32] is fast, [02:03:34] or the [02:03:34] system can [02:03:35] process work [02:03:36] in batches, [02:03:37] then this [02:03:39] polling is [02:03:40] going to [02:03:40] help. [02:03:40] That is [02:03:41] why I [02:03:41] said, earlier [02:03:42] when you [02:03:43] are moving [02:03:43] the data, [02:03:44] the confirmation [02:03:44] can be [02:03:45] done, either [02:03:46] by interrupt [02:03:47] or by [02:03:48] polling. [02:03:50] So whether [02:03:50] to use the [02:03:50] interrupt for [02:03:51] confirmation of [02:03:52] the notification, [02:03:54] or to use [02:03:54] polling for [02:03:55] confirmation of [02:03:57] notification, [02:03:59] it depends on [02:04:00] how the job [02:04:01] is getting [02:04:01] done, or [02:04:02] if the data [02:04:04] is huge, [02:04:05] I am moving [02:04:07] a petabyte of [02:04:08] data, then [02:04:11] I will not [02:04:12] be using [02:04:12] polling, because [02:04:14] the polling is [02:04:15] going to [02:04:16] consume my [02:04:17] CPU, which I [02:04:18] can use it for [02:04:19] some other [02:04:19] process. [02:04:21] Interrupt is [02:04:22] sufficient, because [02:04:23] the moment the [02:04:25] last byte of the [02:04:26] petabyte is [02:04:26] returned into the [02:04:27] target, the [02:04:29] interrupt is going [02:04:30] to signal the [02:04:31] completion of [02:04:31] the job, so [02:04:33] there I will [02:04:34] not use [02:04:34] polling, I [02:04:36] will be using [02:04:37] only the [02:04:37] interrupt. [02:04:40] So, we [02:04:43] have to, because [02:04:45] in case of [02:04:46] loop, it will [02:04:48] also check the [02:04:48] status, if it [02:04:49] is not ready, it [02:04:50] has to check [02:04:50] again, if it [02:04:51] is ready to [02:04:52] process the [02:04:52] data. [02:04:55] So if in the [02:04:56] loop also, can I [02:04:57] use polling, it [02:04:58] depends, again [02:04:59] it depends, if [02:05:02] processing is [02:05:04] going to take [02:05:05] longer, then [02:05:06] probably interrupt [02:05:08] is the best [02:05:09] way, if the [02:05:10] processing is [02:05:11] going to be [02:05:11] quick, then [02:05:13] polling is the [02:05:14] better way of [02:05:15] handling the [02:05:16] completion and [02:05:17] notification. [02:05:21] So we have [02:05:21] seen interruption [02:05:22] and polling, now [02:05:24] the DMA. [02:05:24] objective is [02:05:29] basically to [02:05:29] move data [02:05:30] without CPU, [02:05:32] copying every [02:05:33] byte. [02:05:34] CPU is out. [02:05:36] Here, if you [02:05:37] look at it, we [02:05:37] have our device [02:05:38] controller, which [02:05:40] will transfer the [02:05:41] data using the [02:05:42] memory buffer. [02:05:45] Only the [02:05:46] transfer is [02:05:47] completed, the [02:05:49] status will be [02:05:49] indicated to the [02:05:52] processor. [02:05:54] So the [02:05:55] only, the [02:05:56] last step is [02:05:57] with CPU. [02:06:00] The CPU or [02:06:01] the driver [02:06:01] configures the [02:06:02] transfer, memory [02:06:04] buffer, device or [02:06:06] controller performs [02:06:06] the data [02:06:07] movement. [02:06:08] So the actual [02:06:09] data movement, when [02:06:09] it is happening, we [02:06:10] are not involving [02:06:11] CPU in the [02:06:12] picture at all. [02:06:15] So with these [02:06:16] three, the [02:06:16] DMA, the [02:06:18] polling and the [02:06:19] interrupt, with the [02:06:21] combination of, [02:06:21] that's why it [02:06:22] is coexisting. [02:06:25] One may not [02:06:26] exist, other [02:06:27] two may exist, but [02:06:28] still your job is [02:06:29] done, we are [02:06:30] good. [02:06:32] But it will [02:06:32] coexist, resolves a [02:06:34] different set of [02:06:35] problems. [02:06:37] It has no [02:06:38] interconnection [02:06:39] between them, but [02:06:40] still, it will [02:06:41] coexist. [02:06:45] Very cool. [02:06:47] Now, [02:06:47] why is DMA [02:06:51] useful for high [02:06:52] throughput network [02:06:53] or storage input [02:06:54] output? [02:06:56] It reduces CPU [02:06:57] involvement in [02:06:59] moving large [02:07:00] amounts of data [02:07:01] and can improve [02:07:02] throughput. [02:07:03] It also benefits [02:07:04] depend on the [02:07:06] device, driver, [02:07:08] transfer size and [02:07:09] system design. [02:07:11] So the driver [02:07:12] often controls [02:07:13] devices through [02:07:14] registers. [02:07:15] You know, [02:07:17] registers are [02:07:17] there in the [02:07:18] CPU, which [02:07:19] leads to [02:07:20] memory mapped [02:07:21] input output. [02:07:24] Okay. [02:07:26] Now, [02:07:28] the memory [02:07:29] mapped input [02:07:30] output, device [02:07:32] registers are [02:07:32] mapped into an [02:07:33] address space [02:07:34] and accessed [02:07:36] using the [02:07:37] architecture. [02:07:39] Now, the [02:07:40] operating system's [02:07:41] appropriate mechanism [02:07:42] comes into the [02:07:43] place. [02:07:44] earlier when I [02:07:46] was telling you [02:07:46] about some of [02:07:48] the application [02:07:48] developer, felt [02:07:50] a Linux [02:07:51] operating system [02:07:52] is a better [02:07:52] operating system [02:07:53] for their [02:07:53] application to [02:07:54] run, utilizing [02:07:56] the optimal [02:07:57] resources and [02:07:58] giving the [02:07:58] optimal results [02:07:59] because the [02:08:01] operating system's [02:08:02] appropriate mechanism [02:08:04] also plays a [02:08:04] role. [02:08:06] Those addresses [02:08:07] are not [02:08:07] ordinary [02:08:08] RAM. [02:08:11] Reads and [02:08:11] writes can [02:08:12] have device [02:08:13] specific side [02:08:14] effects and [02:08:16] ordering requirements. [02:08:18] There could be. [02:08:20] So, a controller [02:08:20] bridges software [02:08:23] request to [02:08:24] device behavior, [02:08:26] often coordinating [02:08:27] status, [02:08:30] interrupts, [02:08:31] buffering and [02:08:32] DME. [02:08:33] there could be [02:08:35] buffers also. [02:08:36] And that [02:08:36] buffer, buffering [02:08:38] will happen in [02:08:38] the memory. [02:08:40] So, again, CPU [02:08:40] doesn't play a [02:08:42] role. [02:08:43] It's a memory [02:08:43] map, input [02:08:44] output. [02:08:46] So, if a [02:08:49] register appears [02:08:50] in an address [02:08:51] space, can we [02:08:53] safely treat it [02:08:54] like a normal [02:08:55] variable in [02:08:56] RAM? [02:08:56] We can't. [02:09:00] Device registers [02:09:00] may have [02:09:01] special access [02:09:02] widths, [02:09:04] ordering rules [02:09:04] and side [02:09:06] effects. [02:09:07] So, we [02:09:08] have to use [02:09:08] supported [02:09:09] drivers, [02:09:11] access [02:09:11] mechanisms. [02:09:13] So, this is [02:09:14] where exactly [02:09:14] the [02:09:15] implementation [02:09:17] of the [02:09:18] drivers within [02:09:18] the operating [02:09:19] system plays [02:09:20] an important [02:09:22] role. [02:09:24] Will I be [02:09:24] able to [02:09:26] install the [02:09:27] driver, [02:09:29] particular [02:09:29] device, [02:09:31] into the [02:09:31] Linux operating [02:09:32] system, [02:09:33] wherein the [02:09:34] driver mentions [02:09:34] it is for [02:09:35] Windows operating [02:09:35] system. [02:09:36] No, we [02:09:36] can't. [02:09:39] So, the [02:09:41] memory mapped [02:09:42] Ivo, now we [02:09:45] understand or [02:09:46] we can observe [02:09:47] some of the [02:09:49] operating systems [02:09:50] exposed evidence [02:09:51] these, all [02:09:54] the three, [02:09:55] plus [02:09:56] memory mapped. [02:09:58] Some of [02:09:58] them we [02:09:59] will be able [02:10:00] to see it [02:10:01] with the [02:10:02] help of [02:10:02] the operating [02:10:03] system. [02:10:04] As I said [02:10:05] before, [02:10:07] there are [02:10:07] commands that [02:10:08] gives good [02:10:09] input about [02:10:10] what is [02:10:10] happening inside [02:10:11] the system. [02:10:13] There are [02:10:14] commands which [02:10:15] is expected [02:10:16] to give but [02:10:17] might not [02:10:17] give. [02:10:19] So, we [02:10:19] should not [02:10:20] be overwhelmed [02:10:22] by what [02:10:24] we are [02:10:24] getting. [02:10:26] And if, in [02:10:27] case we are [02:10:27] not getting [02:10:28] what we are [02:10:28] expecting from [02:10:29] the operating [02:10:30] system, in [02:10:31] terms of the [02:10:31] information or [02:10:32] the details, [02:10:33] then we need [02:10:34] to see why. [02:10:35] that why will [02:10:38] lead to how [02:10:40] the transaction [02:10:40] is happening [02:10:41] based on that [02:10:42] we need to [02:10:42] change our [02:10:43] approach to [02:10:44] understand how [02:10:45] it is happening. [02:10:47] Okay, cool. [02:10:49] Now, let me [02:10:50] stop here and [02:10:52] let me check if [02:10:53] there are any [02:10:54] queries before [02:10:54] we go ahead [02:10:55] on the Linux [02:10:59] commands week [02:11:01] sequence [02:11:02] demonstration. [02:11:03] Okay, [02:11:03] any queries, [02:11:11] any questions? [02:11:13] If you want, [02:11:13] you can also [02:11:14] raise your [02:11:14] hand. [02:11:16] If you want [02:11:17] to ask over [02:11:18] the mic, [02:11:19] please. [02:11:33] okay, cool. [02:11:46] I don't know, [02:11:47] this is two [02:11:48] extremes. [02:11:49] Either we are [02:11:50] good or nothing [02:11:51] is understandable. [02:11:52] If nothing is [02:11:54] understandable, [02:11:55] please raise [02:11:56] your hand. [02:11:57] I can go a [02:11:58] little bit in [02:12:00] depth and I [02:12:00] can explain. [02:12:02] I try to [02:12:03] explain using [02:12:03] different examples, [02:12:07] but still. [02:12:12] Are we good? [02:12:13] difference [02:12:16] between open [02:12:18] on, open [02:12:20] on load. [02:12:21] Oh, okay, [02:12:22] open on load. [02:12:24] Sorry, I was [02:12:24] not able to [02:12:25] read that [02:12:26] British. [02:12:29] Okay, I [02:12:30] believe at [02:12:30] least DME, [02:12:32] it should be [02:12:33] good for your [02:12:34] understanding. [02:12:35] Okay, [02:12:43] have you ever [02:12:58] used open [02:12:59] on load [02:13:00] British, [02:13:01] just [02:13:01] curiosity [02:13:02] you used? [02:13:11] Okay, [02:13:11] fair enough. [02:13:12] for what [02:13:13] purpose? [02:13:24] Solar flare [02:13:24] card. [02:13:25] Okay, [02:13:25] fine. [02:13:27] Okay. [02:13:29] See, [02:13:30] both of [02:13:31] them operate [02:13:32] at a [02:13:32] different [02:13:32] layer [02:13:33] of the [02:13:36] computer [02:13:36] architecture. [02:13:37] It's not [02:13:37] at the [02:13:38] same [02:13:38] layer. [02:13:39] Though [02:13:40] both are [02:13:40] generally [02:13:41] used [02:13:42] for [02:13:43] dramatically [02:13:44] speed up [02:13:46] the data [02:13:46] transfer [02:13:47] and reduce [02:13:47] CPU [02:13:48] overhead. [02:13:49] The [02:13:50] objective [02:13:50] for using [02:13:51] open on [02:13:51] load [02:13:52] and [02:13:52] DME, [02:13:53] objective [02:13:53] is the [02:13:53] same, [02:13:54] but it [02:13:55] acts in [02:13:58] a different [02:13:58] layer. [02:13:59] The core [02:14:00] difference is [02:14:01] DME is a [02:14:02] hardware [02:14:02] feature [02:14:03] that allows [02:14:05] any device [02:14:06] to talk [02:14:07] directly to [02:14:08] system [02:14:08] memory. [02:14:09] They may [02:14:10] direct [02:14:10] memory [02:14:10] access. [02:14:12] So it [02:14:13] could be [02:14:13] any device [02:14:14] which will [02:14:15] be allowed [02:14:16] to talk to [02:14:17] the memory [02:14:17] directly, [02:14:18] while open [02:14:20] on load [02:14:20] is a [02:14:20] software [02:14:21] framework [02:14:22] which uses [02:14:24] advanced [02:14:25] hardware [02:14:26] features like [02:14:26] DME. [02:14:28] It uses [02:14:28] the DME [02:14:29] and it [02:14:31] also uses [02:14:31] a feature [02:14:32] something [02:14:32] called [02:14:33] OS [02:14:34] bypass, [02:14:35] operating [02:14:36] system [02:14:36] bypass. [02:14:37] The [02:14:38] objective [02:14:38] is basically [02:14:39] to accelerate [02:14:42] the network [02:14:42] applications. [02:14:43] scope as [02:14:50] you said, [02:14:51] DME [02:14:52] works for [02:14:53] all [02:14:53] hardware, [02:14:55] basically [02:14:55] hard drives, [02:14:57] GPUs, [02:15:00] sound cards, [02:15:01] NICs, [02:15:02] etc. [02:15:03] But open [02:15:04] on load [02:15:05] specifically [02:15:06] for NICs, [02:15:08] maybe [02:15:09] Solar [02:15:09] Flare, [02:15:10] AMD, [02:15:12] or even [02:15:12] Zynx. [02:15:13] some of [02:15:14] them. [02:15:15] So one [02:15:16] is a [02:15:16] hardware [02:15:17] and another [02:15:17] one is a [02:15:18] software [02:15:18] architecture [02:15:19] having the [02:15:21] same [02:15:21] objective [02:15:22] in [02:15:22] place. [02:15:26] How do [02:15:26] real-life [02:15:27] systems [02:15:27] choose [02:15:28] between [02:15:28] interrupts [02:15:29] and [02:15:29] polling? [02:15:30] And do [02:15:31] any [02:15:31] use [02:15:32] both? [02:15:35] Okay. [02:15:36] Let us [02:15:37] take the [02:15:37] same [02:15:37] stock [02:15:38] exchange [02:15:38] example. [02:15:40] See, [02:15:41] these are [02:15:41] all [02:15:41] features [02:15:43] that can [02:15:43] be set. [02:15:44] Let me [02:15:44] tell that [02:15:46] up front. [02:15:47] It can be [02:15:48] enabled, [02:15:49] it can be [02:15:49] disabled, [02:15:51] based on [02:15:52] the [02:15:52] instruction [02:15:52] set that [02:15:53] it is [02:15:54] receiving. [02:15:55] So it [02:15:56] will be [02:15:56] available in [02:15:57] the [02:15:57] instruction [02:15:58] set [02:15:58] itself, [02:15:59] which one [02:16:00] we are [02:16:00] going to [02:16:01] choose. [02:16:02] And some [02:16:03] might choose [02:16:04] both for [02:16:05] different [02:16:05] purposes. [02:16:07] As I [02:16:07] said [02:16:08] before, [02:16:10] suppose if [02:16:10] the stock [02:16:10] exchange is [02:16:11] giving you [02:16:11] the price [02:16:13] points, [02:16:14] and we [02:16:16] don't know [02:16:16] at what [02:16:16] interval it [02:16:17] will come, [02:16:17] how many [02:16:18] it will [02:16:18] come, [02:16:19] it all [02:16:20] depends on [02:16:20] the action [02:16:21] that has [02:16:21] been [02:16:21] performed [02:16:22] in the [02:16:22] floor of [02:16:23] the [02:16:23] stock [02:16:23] exchange. [02:16:25] So in [02:16:25] that case, [02:16:27] we will be [02:16:28] using polling [02:16:28] for detecting [02:16:30] whether we [02:16:31] have received, [02:16:32] we will [02:16:34] be using [02:16:34] interrupting [02:16:35] for post [02:16:37] update into [02:16:38] the database, [02:16:39] and to [02:16:40] move the [02:16:40] data from [02:16:41] memory to [02:16:42] database, [02:16:42] we will [02:16:42] be using [02:16:43] the DMA. [02:16:46] Yes, [02:16:46] there are [02:16:47] chances that [02:16:48] in most of [02:16:49] the cases, [02:16:49] it will be [02:16:50] used, [02:16:50] both of [02:16:51] them, [02:16:52] but in [02:16:52] some cases, [02:16:53] we will [02:16:54] prefer. [02:16:57] It depends [02:16:58] on the [02:16:58] business use [02:16:58] case. [02:16:59] kernel [02:17:02] bypass, [02:17:03] yeah, [02:17:04] definitely [02:17:04] that is [02:17:05] what I [02:17:05] was referring [02:17:06] to when [02:17:07] I said [02:17:07] OS [02:17:08] bypass. [02:17:10] Okay, [02:17:10] cool. [02:17:12] But generally [02:17:12] we call it [02:17:12] as OS [02:17:14] bypass [02:17:14] because [02:17:15] kernel is [02:17:16] inside the [02:17:17] operating [02:17:17] system and [02:17:18] kernel cannot [02:17:20] give what [02:17:20] all operating [02:17:23] system can [02:17:24] give, [02:17:24] but operating [02:17:26] system can [02:17:27] provide what [02:17:28] kernel can. [02:17:29] provide. [02:17:30] That's the [02:17:30] reason we [02:17:31] call it as [02:17:31] OS [02:17:32] bypass. [02:17:33] Okay, [02:17:34] cool. [02:17:36] Great. [02:17:38] Anything else [02:17:39] from anyone? [02:17:46] It's only [02:17:46] seven responses. [02:17:48] Okay, [02:17:49] great. [02:17:51] Fair enough. [02:17:51] now let us [02:17:54] look at [02:17:55] a couple of [02:17:57] commands and [02:17:58] see how it [02:17:59] works. [02:18:01] If it's [02:18:02] okay, [02:18:02] can you say [02:18:02] the difference [02:18:03] between polling [02:18:04] and interrupting? [02:18:05] polling is [02:18:07] something that [02:18:07] you're [02:18:08] performing to [02:18:11] check. [02:18:14] Okay, [02:18:14] file arrival [02:18:15] is the best [02:18:17] example. [02:18:19] So if the [02:18:19] file is going [02:18:20] to come into [02:18:21] the S3 [02:18:21] bucket, [02:18:22] then how [02:18:24] will the [02:18:24] application know [02:18:25] that the [02:18:25] file has [02:18:26] come so [02:18:27] that it can [02:18:27] process it? [02:18:28] So generally [02:18:31] in data [02:18:32] or ETL, [02:18:33] we call it [02:18:34] as file [02:18:35] arrival [02:18:36] trigger. [02:18:37] So basically [02:18:38] the data [02:18:38] processing will [02:18:39] be triggered [02:18:40] based on the [02:18:40] file arrival [02:18:41] in a S3 [02:18:42] bucket. [02:18:44] So there, [02:18:46] in case of [02:18:47] that, [02:18:50] S3 can also [02:18:51] throw an [02:18:53] event using [02:18:54] the interrupt [02:18:54] or the [02:18:55] application [02:18:56] also can [02:18:56] poll to [02:18:58] check the [02:18:59] S3 [02:18:59] bucket. [02:19:00] Both is [02:19:01] possible. [02:19:05] So in [02:19:05] that case, [02:19:08] we would [02:19:08] prefer polling [02:19:09] because [02:19:10] polling is [02:19:12] controllable. [02:19:13] What is [02:19:14] controllable? [02:19:14] The [02:19:14] frequency. [02:19:16] Interrupt [02:19:17] will happen [02:19:18] only at the [02:19:18] completion of [02:19:20] the event [02:19:20] or [02:19:22] the [02:19:24] in case [02:19:25] if there [02:19:26] is an [02:19:26] event [02:19:27] saying that [02:19:29] S3 is [02:19:30] not [02:19:30] accessible. [02:19:32] It is a [02:19:33] system [02:19:33] event. [02:19:35] Now this [02:19:35] event has [02:19:36] occurred. [02:19:38] The [02:19:38] notification [02:19:38] has come [02:19:39] to the [02:19:40] system [02:19:40] log. [02:19:41] Now [02:19:41] you are [02:19:42] monitoring [02:19:42] tool is [02:19:44] going to [02:19:46] poll the [02:19:46] event to [02:19:47] know if [02:19:48] there is [02:19:48] an event [02:19:48] up. [02:19:49] But when [02:19:50] the system [02:19:51] log is [02:19:51] generating [02:19:52] that event, [02:19:53] it was [02:19:54] due to [02:19:54] the [02:19:54] interrupt, [02:19:56] but your [02:19:56] monitoring [02:19:56] system is [02:19:57] polling to [02:19:58] know if [02:19:58] there is [02:19:59] an event [02:19:59] or not. [02:20:02] So in [02:20:02] this example, [02:20:03] we are [02:20:04] using both [02:20:04] interrupt and [02:20:05] polling. [02:20:06] Interrupt to [02:20:06] get the [02:20:07] log written [02:20:08] into the [02:20:08] system log [02:20:09] and polling [02:20:10] is basically [02:20:11] to see if [02:20:12] there is [02:20:12] anything in [02:20:13] the system [02:20:14] log [02:20:15] pertaining [02:20:16] to this [02:20:16] event. [02:20:16] that is [02:20:18] also a [02:20:20] good example [02:20:21] where both [02:20:22] polling and [02:20:22] interrupt is [02:20:23] being used. [02:20:28] Okay, [02:20:29] cool. [02:20:36] It's not [02:20:37] listening. [02:20:38] The right [02:20:38] word is [02:20:39] checking. [02:20:41] It won't [02:20:42] listen. [02:20:42] Listen means [02:20:43] you are [02:20:43] expecting an [02:20:44] input. [02:20:45] Yes, [02:20:50] because I [02:20:51] have allowed [02:20:51] your mic. [02:20:52] Please go [02:20:53] ahead. [02:20:57] Sir, [02:20:57] good evening. [02:20:58] Can you [02:20:58] hear me? [02:21:00] Yeah, [02:21:00] I can hear [02:21:00] you. [02:21:00] Go ahead. [02:21:02] Okay. [02:21:02] Yes, [02:21:03] sir. [02:21:04] Since you [02:21:04] are talking [02:21:05] about, [02:21:05] I mean, [02:21:08] reading a [02:21:09] data from [02:21:09] the S3 and [02:21:10] then processing [02:21:11] it further [02:21:12] so that [02:21:13] we can [02:21:13] put it [02:21:13] in some [02:21:14] database. [02:21:16] So, [02:21:16] in that [02:21:17] context, [02:21:18] I have a [02:21:19] question. [02:21:20] So, [02:21:20] when we [02:21:20] read a [02:21:20] data from [02:21:22] S3 bucket [02:21:22] or JCP [02:21:23] bucket, [02:21:25] so, [02:21:25] data gets [02:21:27] written to [02:21:27] the RAM, [02:21:28] right, [02:21:29] for further [02:21:29] processing [02:21:30] using some [02:21:31] big data [02:21:32] processing [02:21:33] tools. [02:21:34] So, [02:21:35] in between [02:21:36] S3 and [02:21:37] RAM, [02:21:38] do we [02:21:38] use DMA [02:21:39] or is [02:21:40] DMA [02:21:41] bypass [02:21:42] occurs here? [02:21:43] I mean, [02:21:43] where exactly [02:21:44] we use [02:21:44] the DMA? [02:21:46] That is [02:21:47] from your [02:21:47] memory to [02:21:48] your database [02:21:49] or database. [02:21:51] Okay. [02:21:52] So, [02:21:52] after [02:21:56] processing, [02:21:58] when we [02:21:59] write data [02:21:59] to [02:22:00] database, [02:22:01] that's [02:22:02] where we [02:22:02] use the [02:22:03] DMA. [02:22:03] Right? [02:22:05] Yeah. [02:22:06] That is [02:22:06] where generally [02:22:06] the DMA [02:22:07] is because [02:22:08] it's a [02:22:10] direct memory [02:22:10] access by [02:22:11] the source. [02:22:14] There is [02:22:14] no CPU [02:22:15] involved in [02:22:17] it. [02:22:19] DMA is [02:22:19] nothing but [02:22:20] direct memory [02:22:20] access. [02:22:21] That's it. [02:22:23] So, [02:22:24] DMA [02:22:24] cannot be [02:22:26] between [02:22:27] your [02:22:27] asset [02:22:28] and [02:22:29] cost. [02:22:31] For [02:22:32] ETL or [02:22:32] ELT might [02:22:33] be [02:22:33] happening [02:22:34] in [02:22:34] between. [02:22:36] And after [02:22:36] that it [02:22:36] is [02:22:36] returned. [02:22:38] From [02:22:39] memory it [02:22:40] goes to [02:22:40] the [02:22:40] database [02:22:40] directly [02:22:41] with [02:22:41] the [02:22:42] DMA. [02:22:45] Sir, [02:22:46] your voice [02:22:46] is breaking. [02:22:47] Not sure [02:22:48] if it is [02:22:49] with everyone [02:22:50] or just [02:22:51] me. [02:22:54] Is it [02:22:55] better now? [02:22:56] Yeah, [02:22:57] I can [02:22:57] hear you. [02:22:58] is it [02:23:00] still [02:23:00] breaking? [02:23:02] No, [02:23:03] it's fine [02:23:03] for me. [02:23:05] Okay. [02:23:06] See, [02:23:06] what all [02:23:07] you are [02:23:08] trying to [02:23:08] ask is [02:23:08] you are [02:23:09] getting the [02:23:10] data to [02:23:10] your S3 [02:23:11] bucket. [02:23:12] And then [02:23:13] from S3 [02:23:14] bucket, [02:23:14] the objective [02:23:15] is basically [02:23:16] to write it [02:23:16] into the [02:23:17] database. [02:23:17] Am I [02:23:18] right? [02:23:20] So, [02:23:20] in between [02:23:21] you wanted [02:23:22] to process [02:23:23] something. [02:23:24] maybe the [02:23:25] format of [02:23:26] the date [02:23:26] or format [02:23:27] of the [02:23:27] number or [02:23:28] you wanted [02:23:29] to see [02:23:30] that if [02:23:30] all the [02:23:30] text is [02:23:31] in the [02:23:31] right [02:23:31] format, [02:23:32] whatever it [02:23:33] is, [02:23:33] or you [02:23:34] wanted to [02:23:34] club 2, [02:23:36] 3 data [02:23:37] into a [02:23:37] single field [02:23:38] and write [02:23:38] it into [02:23:39] the database, [02:23:39] whatever type [02:23:40] of operations, [02:23:41] whether you [02:23:42] do an [02:23:42] ELT or [02:23:43] an ETL, [02:23:44] it will [02:23:45] happen before [02:23:46] it goes to [02:23:47] the final [02:23:47] data warehouse [02:23:48] storage. [02:23:50] It can [02:23:51] happen between [02:23:51] S3 and [02:23:52] your memory. [02:23:54] Or it [02:23:54] can happen [02:23:55] between [02:23:55] memory and [02:23:56] S3, [02:23:58] the database. [02:23:59] So, [02:24:00] generally, [02:24:00] the best [02:24:00] practice is [02:24:01] to have [02:24:01] it processed [02:24:03] and stored [02:24:03] it in [02:24:03] the memory [02:24:04] so that [02:24:05] the storage [02:24:06] can store [02:24:06] the data [02:24:06] from the [02:24:07] memory [02:24:07] directly. [02:24:09] So, [02:24:09] in this [02:24:10] scenario, [02:24:10] the DMA [02:24:11] is implemented [02:24:12] between the [02:24:12] storage and [02:24:13] the memory [02:24:13] and between [02:24:15] S3 bucket [02:24:16] and memory [02:24:16] there is no [02:24:17] DMA because [02:24:17] there is a [02:24:18] processing that [02:24:19] needs to [02:24:19] be performed. [02:24:21] That's why [02:24:21] there is no [02:24:22] DMA. [02:24:24] Okay. [02:24:26] Sir, [02:24:26] in case of [02:24:28] local DB, [02:24:29] let's say [02:24:30] data usage [02:24:31] built-in [02:24:32] and the [02:24:34] system itself [02:24:35] where I'm [02:24:35] processing the [02:24:36] data, [02:24:36] in that [02:24:37] case, [02:24:38] I think [02:24:38] we will [02:24:39] have the [02:24:39] DMA bypass. [02:24:42] Yeah. [02:24:42] Most of [02:24:43] the cases, [02:24:45] if it is [02:24:46] a local [02:24:46] disk, [02:24:48] then [02:24:49] possibly [02:24:50] yes. [02:24:51] I can't [02:24:51] say [02:24:52] definitely [02:24:52] yes, [02:24:53] then [02:24:54] possibly [02:24:55] yes, [02:24:56] you can [02:24:56] do [02:24:56] that. [02:24:58] Okay. [02:25:00] And in [02:25:01] case of [02:25:01] remote DB, [02:25:02] if we [02:25:02] have a [02:25:03] database [02:25:04] located [02:25:04] in some [02:25:06] other [02:25:07] device or [02:25:07] somewhere [02:25:08] else in [02:25:08] the cloud, [02:25:09] then in [02:25:10] that case, [02:25:10] we will [02:25:11] have the [02:25:11] DMA. [02:25:12] We can't [02:25:13] bypass [02:25:14] DMA because [02:25:14] we have to [02:25:15] transfer the [02:25:15] data to [02:25:16] that [02:25:17] location. [02:25:17] Hold on. [02:25:19] That [02:25:19] terminology [02:25:20] needs to [02:25:20] be correct. [02:25:21] Let me [02:25:22] just [02:25:22] correct [02:25:22] that [02:25:22] first. [02:25:24] DMA [02:25:24] mechanism [02:25:25] itself is [02:25:26] bypassing [02:25:28] CPU. [02:25:28] That is [02:25:29] the objective. [02:25:31] Whether you [02:25:31] are using [02:25:32] DMA or [02:25:33] not is [02:25:34] the question. [02:25:36] It is not [02:25:37] that DMA [02:25:37] is by default [02:25:38] and you [02:25:39] are bypassing. [02:25:40] No, [02:25:40] not like [02:25:40] that. [02:25:42] The default [02:25:43] is CPU [02:25:44] is involved. [02:25:46] Even if you [02:25:46] are transferring [02:25:47] data from [02:25:47] memory to [02:25:49] hard disk, [02:25:50] CPU is [02:25:51] involved by [02:25:52] default. [02:25:53] You want [02:25:54] to bypass [02:25:54] the CPU [02:25:55] involvement, [02:25:56] so you [02:25:57] are using [02:25:57] the feature [02:25:58] DMA. [02:26:00] The moment [02:26:01] you say [02:26:01] bypass [02:26:02] DMA, [02:26:02] then your [02:26:04] understanding [02:26:05] is a little [02:26:05] different. [02:26:07] That's where [02:26:07] I just wanted [02:26:08] to correct [02:26:08] it. [02:26:09] DMA is a [02:26:10] feature that [02:26:10] will bypass [02:26:11] CPU. [02:26:12] If you [02:26:13] are not [02:26:13] using DMA, [02:26:14] then you [02:26:14] are using [02:26:15] the default. [02:26:16] It will [02:26:17] involve [02:26:17] CPU. [02:26:19] The reads [02:26:19] and writes [02:26:20] will take [02:26:20] extended [02:26:21] time. [02:26:23] That's [02:26:24] it. [02:26:27] OK. [02:26:30] And, [02:26:30] sir, [02:26:30] I have [02:26:31] another [02:26:31] question [02:26:32] related to [02:26:33] network [02:26:33] card. [02:26:35] So, [02:26:36] in the [02:26:38] same [02:26:38] context, [02:26:39] when we [02:26:40] read the [02:26:40] data from [02:26:41] any bucket [02:26:42] of any [02:26:43] cloud, [02:26:44] and then [02:26:45] we bring [02:26:46] the data [02:26:46] into our [02:26:47] environment [02:26:48] where we [02:26:49] have to [02:26:50] process it. [02:26:52] So, [02:26:52] in that [02:26:52] case, [02:26:53] basically, [02:26:53] data transfer [02:26:54] happens over [02:26:55] network. [02:26:57] Right? [02:26:57] That's right. [02:26:58] So, [02:26:58] in that [02:26:59] case, [02:27:00] we use [02:27:00] the network [02:27:01] card because [02:27:02] data is [02:27:04] being transferred [02:27:04] over network, [02:27:06] over wires. [02:27:07] So, [02:27:08] basically, [02:27:09] a network [02:27:09] card is [02:27:10] used in [02:27:11] order to [02:27:11] transfer the [02:27:12] data. [02:27:12] is my [02:27:13] understanding [02:27:14] correct? [02:27:15] 100%. [02:27:16] Suppose you [02:27:18] have a [02:27:18] Google [02:27:19] sheet. [02:27:21] Where is [02:27:21] the Google [02:27:22] sheet stored? [02:27:23] Not in [02:27:23] your desktop, [02:27:24] not in [02:27:24] your laptop. [02:27:26] Now, [02:27:26] if you want [02:27:27] to access [02:27:27] the Google [02:27:28] sheet, [02:27:28] if you are [02:27:29] not connected [02:27:30] over internet, [02:27:32] will you be [02:27:32] able to [02:27:32] access it? [02:27:36] No. [02:27:36] So, [02:27:38] the critical [02:27:39] point here [02:27:40] is [02:27:40] internet [02:27:40] connection. [02:27:43] So, [02:27:43] if you are [02:27:44] connected to [02:27:44] the internet, [02:27:45] then you can [02:27:46] access your [02:27:47] Google sheet. [02:27:48] That means [02:27:48] your data [02:27:49] is getting [02:27:49] transferred [02:27:50] over your [02:27:51] internet [02:27:51] network. [02:27:53] That means [02:27:53] your [02:27:53] NIC or [02:27:56] your [02:27:56] Wi-Fi [02:27:57] is being [02:27:59] used. [02:28:00] Either it [02:28:00] could be [02:28:01] Bluetooth or [02:28:01] a wire, [02:28:02] wireless, [02:28:04] whatever it [02:28:04] is. [02:28:05] It is [02:28:05] transferring [02:28:06] through your [02:28:06] network. [02:28:09] Okay. [02:28:10] And there [02:28:11] are certain [02:28:12] tools these [02:28:13] days, [02:28:14] primarily [02:28:15] into ETL. [02:28:16] We do [02:28:18] have capability [02:28:18] to directly [02:28:19] upload the [02:28:20] data. [02:28:20] So, [02:28:20] like, [02:28:21] I am not [02:28:22] sure whether [02:28:23] you have [02:28:24] used Databricks. [02:28:25] So, [02:28:26] in Databricks [02:28:26] or Snowflake, [02:28:27] we do have [02:28:28] the option [02:28:29] to directly [02:28:30] pick the [02:28:30] data files. [02:28:33] So, [02:28:33] in that [02:28:34] case, [02:28:34] we are [02:28:36] completely [02:28:36] bypassing [02:28:37] the [02:28:37] network [02:28:38] card, [02:28:38] right? [02:28:39] We are [02:28:39] not at [02:28:39] all using [02:28:40] it. [02:28:40] Because we [02:28:41] upload the [02:28:42] data. [02:28:43] Let us take [02:28:43] the example [02:28:43] of Databricks [02:28:44] only. [02:28:46] Yeah. [02:28:47] Let us take [02:28:48] the example [02:28:48] of a [02:28:49] Databricks. [02:28:49] So, [02:28:49] why do you [02:28:50] use Databricks? [02:28:50] What is [02:28:51] Databricks? [02:28:51] Databricks is [02:28:52] a managed [02:28:52] solution. [02:28:54] There is [02:28:54] nothing at [02:28:55] your end. [02:28:56] Am I [02:28:56] right? [02:28:57] Correct. [02:28:57] Yes. [02:28:58] And Databricks [02:28:59] itself do not [02:29:00] have any [02:29:01] infrastructure on [02:29:02] their own. [02:29:03] They are using [02:29:04] the cloud [02:29:04] infrastructure. [02:29:06] Yes. [02:29:06] Yeah. [02:29:07] Okay. [02:29:08] So, [02:29:08] Databricks is a [02:29:09] platform which [02:29:10] is hosted [02:29:10] somewhere. [02:29:12] And the [02:29:13] Databricks [02:29:13] application do [02:29:14] not have [02:29:15] infrastructure. [02:29:16] It is using [02:29:16] cloud [02:29:17] infrastructure. [02:29:18] It could be [02:29:18] AWS. [02:29:19] It could be [02:29:19] Azure. [02:29:20] It could be [02:29:20] Google Cloud. [02:29:21] Any one of [02:29:22] them. [02:29:23] Or all [02:29:24] three of [02:29:24] them. [02:29:25] Now, [02:29:26] why will you [02:29:26] use Databricks [02:29:27] to either [02:29:30] engineer your [02:29:32] data or [02:29:32] analyze your [02:29:33] data? [02:29:34] Where is [02:29:34] your data? [02:29:35] Data is in [02:29:35] the cloud. [02:29:37] Your [02:29:37] application is [02:29:38] engineering or [02:29:40] your application [02:29:40] is analyzing, [02:29:41] which is [02:29:42] Databricks. [02:29:43] So, [02:29:43] your Databricks [02:29:44] is in a [02:29:44] different [02:29:45] network. [02:29:46] Your data [02:29:47] is in a [02:29:47] different [02:29:47] network, [02:29:49] different area, [02:29:50] and you are [02:29:50] in a [02:29:51] different network. [02:29:53] So, [02:29:53] now, [02:29:54] how can you [02:29:54] bypass [02:29:55] network? [02:29:57] No, [02:29:58] sir, [02:29:58] my question [02:29:59] is not [02:30:00] with respect [02:30:01] to the [02:30:02] data which [02:30:02] is residing [02:30:03] in the [02:30:03] S3 bucket. [02:30:04] Let's [02:30:04] say one [02:30:05] of the [02:30:06] file which [02:30:06] is sitting [02:30:06] in my [02:30:07] laptop, [02:30:08] and I [02:30:08] have this [02:30:09] Databricks [02:30:10] application which [02:30:11] is running [02:30:12] in the [02:30:12] browser. [02:30:13] So, [02:30:13] we can [02:30:13] directly upload [02:30:14] the files [02:30:15] which is [02:30:15] sitting in [02:30:16] my laptop [02:30:16] locally to [02:30:18] the Databricks [02:30:19] or Snowflake. [02:30:21] I understand. [02:30:23] That is [02:30:24] from a [02:30:24] different [02:30:25] context. [02:30:26] That is [02:30:27] from a [02:30:27] different [02:30:27] context. [02:30:28] When they [02:30:29] say direct [02:30:30] upload, [02:30:31] that is [02:30:32] from a [02:30:32] different [02:30:33] context. [02:30:34] In case [02:30:36] if you are [02:30:36] having in [02:30:37] your local [02:30:38] environment, [02:30:39] it can be [02:30:40] your laptop [02:30:42] or it could [02:30:42] be your own [02:30:43] office network [02:30:44] or it could [02:30:45] be a [02:30:46] Microsoft SQL [02:30:46] server which [02:30:48] is running [02:30:48] in your own [02:30:50] network. [02:30:51] From there, [02:30:52] you wanted to [02:30:52] upload the [02:30:53] data. [02:30:55] That is [02:30:56] basically an [02:30:57] interface that [02:30:58] is provided [02:30:58] to upload [02:30:59] a specific [02:31:00] data. [02:31:02] And that [02:31:02] they call it [02:31:03] as direct [02:31:04] upload. [02:31:04] It has [02:31:04] nothing to [02:31:05] do with [02:31:06] any of the [02:31:06] context that [02:31:07] we are [02:31:08] discussing [02:31:08] today. [02:31:09] That is [02:31:10] basically what [02:31:10] they are [02:31:11] trying to [02:31:11] say is [02:31:12] in case [02:31:13] if you [02:31:13] have any [02:31:14] data locally [02:31:15] and not [02:31:15] in the [02:31:16] cloud, [02:31:16] it will [02:31:18] give you [02:31:18] a feature [02:31:19] wherein you [02:31:20] can upload [02:31:21] the data [02:31:21] into the [02:31:22] Databricks [02:31:22] environment. [02:31:23] You are [02:31:24] not uploading [02:31:24] it to [02:31:24] any of [02:31:25] the S3 [02:31:26] buckets. [02:31:27] You are [02:31:27] uploading [02:31:28] into the [02:31:28] Databricks [02:31:28] environment. [02:31:29] Behind the [02:31:30] screen, [02:31:30] they are [02:31:30] using S3 [02:31:32] only. [02:31:33] So they [02:31:33] will allow [02:31:34] you to [02:31:34] upload it [02:31:35] to S3 [02:31:35] bucket and [02:31:36] they will [02:31:36] use it. [02:31:37] You will [02:31:37] not even [02:31:37] be knowing [02:31:38] about the [02:31:39] transaction. [02:31:40] as far [02:31:45] as you [02:31:45] are [02:31:46] concerned, [02:31:47] the file [02:31:48] from your [02:31:48] laptop has [02:31:49] gone into [02:31:50] the Databricks [02:31:50] environment. [02:31:51] That's all [02:31:52] it means. [02:31:53] Yeah. [02:31:54] So my [02:31:54] point is [02:31:55] in here [02:31:56] when we [02:31:57] are uploading [02:31:57] the file [02:31:58] to Databricks, [02:31:59] network is [02:32:00] not involved. [02:32:01] So we are [02:32:02] not transferring [02:32:02] the... [02:32:04] You do [02:32:04] one thing. [02:32:05] You just [02:32:05] disconnect [02:32:06] your internet. [02:32:08] Will you [02:32:08] be able to [02:32:09] upload to [02:32:10] Databricks? [02:32:11] Okay. [02:32:14] Because [02:32:14] Databricks is [02:32:15] not in your [02:32:16] environment. [02:32:17] It is [02:32:18] hosted somewhere [02:32:19] else. [02:32:21] Access [02:32:21] Databricks [02:32:22] itself, [02:32:22] you need [02:32:22] network. [02:32:27] So even [02:32:28] this data [02:32:29] upload requires [02:32:30] network and [02:32:31] data is [02:32:31] being transferred [02:32:32] over network. [02:32:33] Yeah. [02:32:34] Okay. [02:32:34] Yeah, it [02:32:34] is. [02:32:36] Suppose if [02:32:36] you have [02:32:37] data in [02:32:37] the server's [02:32:39] memory and [02:32:41] the same [02:32:43] server is [02:32:44] having the [02:32:44] hard disk, [02:32:47] you are [02:32:47] using DMA, [02:32:49] then it [02:32:50] is not [02:32:50] going over [02:32:51] the network. [02:32:52] It is [02:32:53] within the [02:32:54] system. [02:32:55] But the [02:32:56] moment you [02:32:56] say that [02:32:57] your database [02:32:58] is in some [02:32:58] other server, [02:33:00] even within [02:33:01] the network [02:33:01] also, it [02:33:02] is going [02:33:02] over the [02:33:03] network. [02:33:04] It is [02:33:05] using the [02:33:05] network [02:33:05] card. [02:33:06] All right. [02:33:09] Yeah. [02:33:12] Okay, sir. [02:33:12] Thank you. [02:33:14] Cool. [02:33:16] Great. [02:33:17] Anything else [02:33:18] from anyone? [02:33:22] Okay. [02:33:22] Oh, great. [02:33:29] TBB. [02:33:31] Totally [02:33:32] forgot about [02:33:32] that. [02:33:34] I will [02:33:35] definitely [02:33:36] cover it. [02:33:38] I'll note [02:33:39] it down. [02:33:39] Just give me [02:33:40] a minute to [02:33:40] bridge. [02:33:41] Let me [02:33:42] note it [02:33:43] down. [02:33:43] I don't [02:33:43] want to [02:33:44] depend on [02:33:44] you guys [02:33:45] reminding [02:33:46] me. [02:33:48] Okay. [02:33:49] Limited CPU [02:33:50] data copy [02:33:51] involvement. [02:33:53] When a [02:33:53] device [02:33:54] DMAs [02:33:54] data into [02:33:55] memory, [02:33:57] how does [02:33:57] the CPU [02:33:58] avoid [02:33:58] reading [02:33:59] state [02:34:00] cached [02:34:00] copies? [02:34:03] I did [02:34:05] not get [02:34:06] you [02:34:06] near it. [02:34:07] Sure. [02:34:08] Can you [02:34:09] put it [02:34:10] across in [02:34:10] broken [02:34:11] down [02:34:12] points or [02:34:13] I will [02:34:13] allow [02:34:14] your [02:34:14] mic. [02:34:19] Yes, [02:34:20] please go [02:34:20] ahead. [02:34:24] If you [02:34:24] go to [02:34:25] one of [02:34:26] the slide [02:34:27] where it [02:34:27] says that [02:34:28] input, [02:34:29] output, [02:34:30] notification, [02:34:30] checking, [02:34:31] and bulk [02:34:31] transfer. [02:34:34] So on [02:34:34] that slide, [02:34:35] it is [02:34:36] mentioned [02:34:36] like DMA [02:34:37] is like [02:34:39] a capable [02:34:39] device slash [02:34:40] controller [02:34:41] transfer blocks [02:34:42] between [02:34:42] device and [02:34:43] memory [02:34:43] with condition [02:34:45] like condition [02:34:46] is with [02:34:46] limited CPU [02:34:48] data copy [02:34:48] involvement. [02:34:49] So I [02:34:50] think what [02:34:50] you are [02:34:50] saying is [02:34:50] that bypass [02:34:51] only. [02:34:52] But my [02:34:53] question is [02:34:53] like, [02:34:55] how does [02:34:56] the CPU [02:34:56] avoid [02:34:57] reading it? [02:34:58] What is [02:34:59] the mechanism [02:35:00] behind it [02:35:00] which avoids [02:35:03] reading [02:35:03] those [02:35:05] data from [02:35:10] the memory? [02:35:11] basically [02:35:12] the [02:35:12] instruction [02:35:13] set [02:35:14] nearage? [02:35:16] It is [02:35:17] the [02:35:17] instruction [02:35:17] set that [02:35:18] is going [02:35:18] at that [02:35:19] point of [02:35:19] time. [02:35:21] Just one [02:35:22] second, [02:35:22] please. [02:35:23] No? [02:35:23] Important [02:35:24] call I [02:35:24] need to [02:35:25] take. [02:35:25] sorry, [02:35:53] I'm [02:35:54] back. [02:35:55] basically [02:35:55] it is [02:35:56] the [02:35:56] instruction [02:35:56] set. [02:35:57] End [02:35:57] of the [02:35:57] day, [02:35:59] we are [02:35:59] not going [02:35:59] to [02:36:00] control [02:36:00] that [02:36:00] communication. [02:36:01] The [02:36:01] communication [02:36:01] is going [02:36:02] to be [02:36:02] controlled [02:36:02] by the [02:36:03] instruction [02:36:05] set. [02:36:06] That [02:36:06] instruction [02:36:07] set, [02:36:08] when it [02:36:08] is [02:36:08] operating [02:36:09] system [02:36:09] is [02:36:09] building [02:36:10] the [02:36:10] instruction [02:36:10] set, [02:36:12] what it [02:36:12] will do [02:36:12] is it [02:36:13] will [02:36:13] implement [02:36:14] the [02:36:14] DMA [02:36:15] because [02:36:15] the [02:36:17] two [02:36:17] objects [02:36:19] that [02:36:19] is [02:36:19] involved [02:36:20] is [02:36:20] memory [02:36:20] and [02:36:20] hard [02:36:21] disk. [02:36:22] So it [02:36:23] will not [02:36:23] involve [02:36:23] the CPU [02:36:24] to come [02:36:24] in and [02:36:25] play the [02:36:25] role. [02:36:27] The [02:36:27] instruction [02:36:28] set that [02:36:29] will be [02:36:29] driving, [02:36:30] that is the [02:36:31] reason I was [02:36:31] trying to [02:36:32] repeatedly tell [02:36:33] the example of [02:36:34] the Linux [02:36:35] operating system, [02:36:36] how it [02:36:37] became faster [02:36:38] comparatively [02:36:39] with other [02:36:40] operating system [02:36:41] that was [02:36:41] existing in [02:36:42] 1990s. [02:36:44] So that [02:36:46] way like it [02:36:47] is the [02:36:47] instruction [02:36:48] set that [02:36:48] is controlling [02:36:49] whether which [02:36:51] hardware is [02:36:52] going to be [02:36:52] involved in [02:36:53] the transaction [02:36:53] or not. [02:36:58] Okay, [02:36:59] got it, [02:37:00] sir. [02:37:01] Okay, [02:37:02] so Nitish, [02:37:03] please ignore. [02:37:05] I thought I [02:37:06] have removed [02:37:06] it. [02:37:07] Okay, [02:37:07] if I have [02:37:08] not removed [02:37:08] it, [02:37:08] I will [02:37:09] remove it. [02:37:10] It is not [02:37:10] for you guys [02:37:11] on that [02:37:11] assignment, [02:37:12] you might [02:37:12] have already [02:37:13] taken it [02:37:13] up. [02:37:15] Okay, [02:37:16] cool. [02:37:20] So, [02:37:22] okay, [02:37:26] so now [02:37:26] coming back [02:37:27] to the [02:37:27] Linux. [02:37:30] Let me [02:37:30] share my [02:37:31] window, [02:37:32] hope my [02:37:33] window is [02:37:34] visible. [02:37:34] just [02:37:36] typing the [02:37:37] clear [02:37:37] command, [02:37:38] hope you [02:37:38] are able [02:37:38] to see [02:37:39] it. [02:37:40] Let me [02:37:41] see if I [02:37:42] can change [02:37:42] the settings, [02:37:45] get a little [02:37:45] bit more [02:37:46] legible. [02:37:50] Okay, [02:37:50] cool. [02:37:52] So now, [02:37:53] this is a [02:37:54] virtual machine [02:37:54] in my own [02:37:55] laptops, [02:37:55] guys. [02:37:58] Something [02:37:59] might work [02:38:00] faster in [02:38:00] this environment [02:38:01] environment [02:38:01] because my [02:38:03] own system, [02:38:03] but don't [02:38:04] expect the [02:38:04] same response [02:38:05] in case if [02:38:06] you are [02:38:06] performing on [02:38:07] your own [02:38:08] in a cloud [02:38:08] environment. [02:38:10] Okay, [02:38:10] so now I'm [02:38:11] saying you [02:38:12] name hyphen [02:38:12] M. [02:38:14] Basically, [02:38:15] I want [02:38:16] the name [02:38:18] of the [02:38:19] mission, [02:38:21] or I want [02:38:22] to identify [02:38:22] the architecture [02:38:23] of the [02:38:24] mission. [02:38:26] So now [02:38:28] if you [02:38:28] look at [02:38:29] this, [02:38:29] it says [02:38:30] that [02:38:30] x86 [02:38:32] 64. [02:38:35] Okay, [02:38:36] now if [02:38:37] I say [02:38:38] lscpu, [02:38:39] basically it [02:38:40] will display [02:38:41] CPU architecture [02:38:42] and processor [02:38:43] information. [02:38:46] You can see [02:38:46] the entire [02:38:47] architecture. [02:38:48] So the [02:38:48] CPU operation, [02:38:50] the architecture [02:38:50] is x86 [02:38:51] 64, [02:38:53] and you [02:38:54] can go into [02:38:55] the detail, [02:38:55] but what [02:38:56] is CPU [02:38:58] family is [02:38:59] 6, [02:39:01] model is [02:39:02] 165, [02:39:04] and how [02:39:06] many CPUs? [02:39:07] Two CPUs [02:39:08] for this [02:39:09] virtual [02:39:10] mission. [02:39:11] And you [02:39:12] can go [02:39:13] ahead and [02:39:13] see all the [02:39:14] information [02:39:14] that is [02:39:15] available for [02:39:16] this particular [02:39:16] CPU. [02:39:18] But mostly [02:39:18] what we [02:39:19] will be [02:39:19] looking at [02:39:20] is thread [02:39:20] per core [02:39:21] is only [02:39:21] one. [02:39:22] Core [02:39:23] per circuit [02:39:23] is one. [02:39:24] number [02:39:25] of [02:39:25] sockets [02:39:26] allowed [02:39:26] is two. [02:39:28] So these [02:39:29] informations [02:39:29] we will [02:39:30] be looking [02:39:30] CPU [02:39:31] family, [02:39:32] what is [02:39:34] the architecture, [02:39:35] how many [02:39:36] CPUs, [02:39:37] and [02:39:38] thread [02:39:39] scores [02:39:40] on [02:39:40] sockets. [02:39:43] Now if [02:39:44] my [02:39:45] processing [02:39:45] is slower, [02:39:47] and if I [02:39:48] understand how [02:39:49] the application [02:39:50] is transacting, [02:39:51] and that [02:39:52] is what [02:39:52] we saw [02:39:52] yesterday [02:39:53] in the [02:39:53] mining, [02:39:54] we observed [02:39:56] that the [02:39:56] CPU utilization [02:39:57] is high, [02:39:59] memory is [02:39:59] not being [02:40:00] utilized. [02:40:01] So that [02:40:02] mining process [02:40:03] is a CPU [02:40:04] intensive. [02:40:05] And if I'm [02:40:05] going to do [02:40:06] the mining, [02:40:06] I did the [02:40:07] mining yesterday [02:40:08] in the same [02:40:08] instance only. [02:40:10] So I have [02:40:10] only two [02:40:11] CPUs, [02:40:13] and allowed [02:40:13] thread is only [02:40:14] one per [02:40:14] core, [02:40:16] socket is [02:40:16] only two, [02:40:17] and stepping [02:40:18] is two. [02:40:18] Now with [02:40:20] this, [02:40:22] the processing [02:40:22] is getting [02:40:23] queued until [02:40:24] the previous [02:40:25] one is [02:40:25] completed. [02:40:27] And mining [02:40:28] is CPU [02:40:29] intensive. [02:40:30] So if I [02:40:30] step up my [02:40:31] number of [02:40:32] CPUs from [02:40:32] two to [02:40:33] four, [02:40:35] then I [02:40:36] will be able [02:40:36] to see that [02:40:37] mining process [02:40:38] is completing [02:40:38] within three [02:40:40] seconds, [02:40:40] two seconds, [02:40:41] and all. [02:40:43] Okay. [02:40:44] So that [02:40:44] you are [02:40:45] speaking about [02:40:46] CPU [02:40:46] information. [02:40:47] I can [02:40:48] say cat [02:40:49] talk is [02:40:51] processes [02:40:52] directory. [02:40:54] I can [02:40:55] ask for [02:40:55] CPU info. [02:40:58] That also [02:40:58] is going to [02:40:59] give you the [02:40:59] same, [02:41:00] whatever we [02:41:01] have seen. [02:41:02] So whatever [02:41:02] I have [02:41:03] done with [02:41:05] LFCPU [02:41:06] got stored [02:41:08] in the [02:41:08] CPU [02:41:10] information [02:41:10] in [02:41:11] process. [02:41:12] features. [02:41:14] So the [02:41:17] reported [02:41:18] architecture [02:41:19] and the [02:41:19] available [02:41:19] features, [02:41:20] what you [02:41:20] are seeing, [02:41:22] actually [02:41:22] reflects my [02:41:24] virtualized [02:41:24] environment [02:41:25] rather than [02:41:27] physical host [02:41:28] because mine [02:41:29] is a VM [02:41:30] running on [02:41:30] my own [02:41:31] laptop. [02:41:33] Okay. [02:41:34] Fair enough. [02:41:35] Now let me [02:41:36] clean the [02:41:36] screen. [02:41:37] Clear the [02:41:37] screen. [02:41:38] Now let [02:41:39] me say [02:41:40] cat [02:41:40] sim [02:41:41] process [02:41:41] information. [02:41:43] Let me [02:41:43] ask for [02:41:44] interrupt. [02:41:46] You can [02:41:46] see like [02:41:47] it will [02:41:48] just [02:41:48] move on. [02:41:51] Too many [02:41:51] interrupts that [02:41:52] it has [02:41:53] identified and [02:41:54] reported. [02:41:56] This is from [02:41:57] the CPU [02:41:58] 0 and this [02:41:58] is the [02:41:58] CPU. [02:41:59] I have [02:41:59] two CPUs. [02:42:01] So the [02:42:02] interrupt can [02:42:02] happen in [02:42:04] any one of [02:42:04] the CPU or [02:42:05] it could be [02:42:06] both as [02:42:06] well. [02:42:07] You can [02:42:08] see here. [02:42:09] Local timer [02:42:10] interrupts. [02:42:12] So it [02:42:14] could be one [02:42:14] of the two [02:42:15] or it could [02:42:16] be both [02:42:17] or it could [02:42:18] be neither [02:42:18] also. [02:42:20] So this is [02:42:20] an MSI. [02:42:21] Basically [02:42:22] interrupt has [02:42:24] nothing to do [02:42:25] with any of [02:42:26] our processes [02:42:26] but it has [02:42:28] nothing to do [02:42:29] with the [02:42:30] CPU also. [02:42:31] What it [02:42:32] has been [02:42:32] logged into. [02:42:34] Suppose [02:42:35] if you [02:42:36] want to [02:42:36] watch [02:42:37] repeatedly [02:42:38] executes a [02:42:40] command and [02:42:40] that displays [02:42:42] the updated [02:42:44] output. [02:42:45] We can [02:42:46] use the [02:42:47] watch command [02:42:48] a very [02:42:48] useful command. [02:42:50] As I [02:42:50] said you [02:42:51] don't need [02:42:52] to [02:42:52] you know [02:42:54] buy hard [02:42:54] these commands. [02:42:56] You should [02:42:56] be aware [02:42:56] that whichever [02:42:57] is the [02:42:58] environment I [02:42:58] will definitely [02:42:59] have some [02:43:00] tool to [02:43:01] understand what [02:43:02] is happening [02:43:02] inside the [02:43:05] watch is [02:43:05] a tool. [02:43:07] Again [02:43:07] all I'm [02:43:08] going to [02:43:09] do is [02:43:09] I'm just [02:43:09] going to [02:43:10] ask the [02:43:13] system to [02:43:13] watch the [02:43:14] interrupts. [02:43:17] So it [02:43:18] is watching. [02:43:19] As soon as [02:43:20] a new [02:43:20] entrant [02:43:22] comes it [02:43:22] is going [02:43:23] to display. [02:43:26] So now [02:43:26] you can [02:43:26] see how [02:43:28] the local [02:43:28] timer [02:43:29] interrupts [02:43:30] it is [02:43:31] increasing [02:43:32] and as [02:43:33] well as [02:43:34] row number [02:43:36] 19. [02:43:39] This is [02:43:40] also changing. [02:43:41] It is [02:43:42] continuously [02:43:42] watching. [02:43:43] That means [02:43:44] this file is [02:43:44] continuously [02:43:45] getting updated [02:43:46] for every [02:43:48] interrupt that [02:43:49] any one of [02:43:50] the CPU is [02:43:51] making for [02:43:52] any of the [02:43:53] processes. [02:43:54] I don't [02:43:55] have much [02:43:55] processes [02:43:55] running in [02:43:56] the system [02:43:56] otherwise [02:43:57] if I'm [02:43:58] running any [02:43:58] application I [02:43:59] would have [02:43:59] to do [02:44:01] something. [02:44:03] Now [02:44:03] hyphen N [02:44:04] 1 what [02:44:04] is that [02:44:05] it's basically [02:44:06] the refresh [02:44:07] interval. [02:44:08] Instead of [02:44:09] 1 that [02:44:09] means every [02:44:10] second. [02:44:11] Instead of [02:44:12] 1 if I [02:44:12] give like [02:44:13] 5 it [02:44:14] will refresh [02:44:14] only every [02:44:15] 5 seconds [02:44:16] that's all. [02:44:17] So for the [02:44:18] next 4 [02:44:18] seconds it [02:44:19] will not [02:44:19] refresh [02:44:20] anything and [02:44:21] it will [02:44:21] refresh after [02:44:22] 5 seconds. [02:44:23] If there is [02:44:24] a change [02:44:24] it will [02:44:25] come up. [02:44:26] That is [02:44:26] all it [02:44:27] means. [02:44:28] So what [02:44:31] did we [02:44:32] understand? [02:44:32] The [02:44:32] interrupted [02:44:33] counters [02:44:34] provide [02:44:35] evidence [02:44:36] about [02:44:36] interrupt [02:44:37] activity. [02:44:38] Not a [02:44:39] complete [02:44:39] explanation. [02:44:40] Will I [02:44:41] be able [02:44:41] to understand [02:44:42] what exactly [02:44:43] is happening? [02:44:43] No. [02:44:45] It is not [02:44:46] a complete [02:44:46] explanation of [02:44:47] device behavior [02:44:48] or performance. [02:44:50] Either we [02:44:50] will not be [02:44:51] able to [02:44:51] make it. [02:44:53] A [02:44:53] virtual [02:44:53] machine may [02:44:54] mine is a [02:44:55] virtual [02:44:55] machine. [02:44:56] it may [02:44:57] show [02:44:57] synthetic [02:44:58] or [02:44:58] virtual [02:44:58] device [02:44:59] interrupts. [02:45:00] For [02:45:00] example the [02:45:01] row number [02:45:02] 24, [02:45:02] 25 and [02:45:03] all is [02:45:03] synthetic. [02:45:06] And a [02:45:07] modern [02:45:07] system may [02:45:08] not expose [02:45:09] a simple [02:45:10] dedicated [02:45:10] keyboard [02:45:11] interrupt. [02:45:13] Suppose if [02:45:14] I press [02:45:14] Q here [02:45:16] or if I [02:45:17] press [02:45:17] control C [02:45:20] is also an [02:45:20] interrupt. [02:45:20] Do we [02:45:22] have [02:45:22] control C [02:45:24] interrupt? [02:45:26] No it [02:45:27] doesn't. [02:45:28] So the [02:45:28] modern [02:45:29] systems does [02:45:30] not expose [02:45:30] a simple [02:45:32] dedicated [02:45:33] keyboard [02:45:33] interrupts [02:45:34] like [02:45:34] control C [02:45:35] control Q [02:45:35] control V [02:45:36] Q for [02:45:38] example. [02:45:39] For example [02:45:40] if I say [02:45:40] that [02:45:41] system [02:45:42] CTL [02:45:43] status [02:45:45] let me [02:45:47] say [02:45:47] docker. [02:45:48] It could [02:45:49] not be [02:45:50] found. [02:45:50] There had [02:45:51] been an [02:45:51] interrupt [02:45:52] finally. [02:45:53] But will [02:45:54] this [02:45:54] interrupt [02:45:54] be [02:45:54] recorded? [02:46:00] But it's [02:46:00] not. [02:46:02] The interrupt [02:46:03] is not [02:46:04] recorded. [02:46:06] So some [02:46:07] it may [02:46:08] expose, [02:46:08] some it [02:46:09] may not [02:46:09] expose. [02:46:11] But still [02:46:11] it will [02:46:11] give an [02:46:12] indication [02:46:12] that the [02:46:13] interrupts [02:46:14] are [02:46:14] happening. [02:46:18] All those [02:46:18] things. [02:46:19] now there [02:46:20] is another [02:46:21] command. [02:46:23] Okay. [02:46:24] So I [02:46:24] can just [02:46:25] say list. [02:46:26] Let me [02:46:27] clear the [02:46:27] screen. [02:46:28] If I [02:46:28] say list [02:46:29] all devices, [02:46:32] it is [02:46:32] listing all [02:46:33] the devices [02:46:34] that is [02:46:35] available in [02:46:37] this virtual [02:46:38] machine. [02:46:40] Now if I [02:46:41] want to list [02:46:41] only PCI [02:46:42] buses that [02:46:44] is visible [02:46:45] to the [02:46:45] system, [02:46:47] then I [02:46:48] will just [02:46:48] say LS [02:46:49] PCI. [02:46:51] Now all [02:46:52] the PCI [02:46:52] systems that [02:46:54] is visible [02:46:55] to the [02:46:55] operating [02:46:56] system is [02:46:57] listed here. [02:46:58] Now I just [02:46:59] wanted to see [02:47:00] what are all [02:47:00] the USB [02:47:00] devices that [02:47:01] are available. [02:47:02] I can [02:47:03] use LS [02:47:03] USB. [02:47:05] So LS [02:47:06] USB is [02:47:06] going to [02:47:07] tell me [02:47:07] there are [02:47:07] so many [02:47:10] USBs that [02:47:11] are available. [02:47:12] One is [02:47:12] already used [02:47:13] by mouse. [02:47:15] There is [02:47:16] one USB [02:47:16] hub. [02:47:18] There is a [02:47:18] Bluetooth [02:47:18] adapter. [02:47:21] So these [02:47:22] many devices [02:47:23] are visible [02:47:24] to the [02:47:25] operating [02:47:25] system in [02:47:27] this virtual [02:47:28] machine. [02:47:29] Now if I [02:47:30] say LS [02:47:32] PCI and [02:47:33] if I [02:47:33] give [02:47:34] NN. [02:47:40] Here NN [02:47:41] requests [02:47:41] numeric [02:47:42] vendor and [02:47:42] the device [02:47:43] identifiers [02:47:44] alongside the [02:47:45] device [02:47:46] descriptions [02:47:46] where [02:47:47] available. [02:47:48] So now [02:47:48] if you [02:47:49] look at [02:47:50] it, [02:47:51] this one, [02:47:52] it is [02:47:52] telling that [02:47:53] it is a [02:47:53] system [02:47:53] peripheral. [02:47:56] It's [02:47:56] VMware, [02:47:57] virtual [02:47:58] machine [02:47:58] communication [02:47:58] interface. [02:48:00] This is [02:48:01] an Intel [02:48:01] corporation. [02:48:02] It's a [02:48:02] bridge. [02:48:03] There is [02:48:04] an IDE [02:48:04] interface, [02:48:06] Intel [02:48:06] corporation. [02:48:08] And this [02:48:08] PCI bus is [02:48:09] connected to [02:48:10] the hard [02:48:10] disk, [02:48:11] IDE [02:48:11] device. [02:48:12] There is [02:48:13] a PCI [02:48:13] bridge, [02:48:14] again from [02:48:15] Intel. [02:48:16] I was not [02:48:16] getting this [02:48:17] much information [02:48:18] when I did [02:48:18] not give [02:48:19] hyphen NN. [02:48:21] So there [02:48:21] are so [02:48:22] many tools [02:48:24] that are [02:48:25] available. [02:48:26] I can also [02:48:26] see the [02:48:27] input. [02:48:28] I can [02:48:29] say [02:48:29] LS [02:48:30] hyphen [02:48:31] L [02:48:31] slash [02:48:33] dev. [02:48:35] Dev is [02:48:35] nothing but [02:48:36] devices. [02:48:37] Input. [02:48:40] So now [02:48:40] you can [02:48:41] see [02:48:41] mouse [02:48:43] 0, [02:48:44] 1, [02:48:44] 2, [02:48:46] event [02:48:46] 1, [02:48:46] 0, [02:48:47] 1, [02:48:47] 2, [02:48:47] 3, [02:48:47] 4. [02:48:49] That is [02:48:49] mice. [02:48:51] All these [02:48:52] input devices [02:48:52] are [02:48:53] detectable [02:48:56] by the [02:48:56] operating [02:49:00] system. [02:49:02] I'm directly [02:49:02] communicating [02:49:03] with the [02:49:03] operating [02:49:04] system. [02:49:04] There is [02:49:04] a command [02:49:05] called [02:49:05] EV test. [02:49:06] I'm not [02:49:06] sure if [02:49:07] I do [02:49:08] have it. [02:49:10] Okay. [02:49:10] I have [02:49:11] to install [02:49:12] the EV [02:49:13] test. [02:49:15] Let me [02:49:15] install it. [02:49:16] Just takes [02:49:16] a minute. [02:49:17] So like [02:49:33] this, [02:49:33] there are [02:49:33] thousands of [02:49:35] tools available. [02:49:37] We test. [02:49:38] I'm going [02:49:38] to run. [02:49:39] It displays [02:49:40] Linux input [02:49:41] event information. [02:49:44] You'll be able [02:49:45] to see that [02:49:45] keyboard [02:49:46] virtual mouse [02:49:47] that is [02:49:48] VMware virtual [02:49:49] mouse, [02:49:51] VMware virtual [02:49:51] mouse and [02:49:52] VMware virtual [02:49:53] USB mouse. [02:49:55] Select the [02:49:55] event, [02:49:56] device event [02:49:57] number. [02:49:58] If you're [02:49:59] going to [02:49:59] select the [02:50:01] device event [02:50:02] number, [02:50:02] let me, [02:50:04] for example, [02:50:04] say 4. [02:50:07] It gives [02:50:08] all the [02:50:09] events that [02:50:12] it has [02:50:12] detected [02:50:12] for that. [02:50:15] So [02:50:15] it is [02:50:16] testing it, [02:50:17] but if I [02:50:18] want to [02:50:18] interrupt, [02:50:18] I can [02:50:19] just [02:50:19] interrupt [02:50:19] for [02:50:20] exit. [02:50:22] The [02:50:22] power [02:50:23] button. [02:50:23] There is [02:50:24] a power [02:50:24] button which [02:50:25] is detected [02:50:27] as an [02:50:27] input device [02:50:28] for this [02:50:29] virtual [02:50:29] machine. [02:50:31] Power [02:50:31] button, [02:50:32] you may [02:50:32] ask, [02:50:33] where will [02:50:34] you be [02:50:34] able to [02:50:34] see it? [02:50:37] Even if [02:50:37] you give [02:50:38] shutdown [02:50:38] minus H [02:50:39] now, [02:50:39] that is [02:50:40] a power [02:50:40] button. [02:50:41] For this [02:50:41] virtual [02:50:42] machine, [02:50:42] that is [02:50:42] a power [02:50:43] button. [02:50:43] It shuts [02:50:43] down. [02:50:45] Then if [02:50:45] you want [02:50:46] to start, [02:50:46] the VMware [02:50:47] is going [02:50:47] to give [02:50:48] the signal. [02:50:49] Or I [02:50:50] can also [02:50:50] go back [02:50:51] to the [02:50:51] VMware [02:50:52] software [02:50:52] where this [02:50:54] virtual [02:50:54] machine is [02:50:54] running. [02:50:55] You can [02:50:56] go there [02:50:56] and I [02:50:56] can say [02:50:57] pause. [02:50:59] The signal [02:51:00] is going [02:51:00] to come. [02:51:01] It is [02:51:01] equivalent to [02:51:02] the power [02:51:04] button in [02:51:04] your laptop. [02:51:06] So basically, [02:51:06] even if I [02:51:07] press the [02:51:07] power button, [02:51:08] it is an [02:51:08] input. [02:51:09] what input [02:51:11] it gives, [02:51:13] the instructions [02:51:14] to shut [02:51:15] down or [02:51:16] start depending [02:51:16] upon the [02:51:17] current state. [02:51:18] If it is [02:51:19] already shut [02:51:19] down, the [02:51:20] power button [02:51:20] is going [02:51:20] to start. [02:51:22] If it [02:51:22] is running, [02:51:24] the power [02:51:24] button will [02:51:24] shut down. [02:51:26] That's [02:51:27] ungrazed. [02:51:30] We should [02:51:30] not do [02:51:31] that. [02:51:31] But what I [02:51:32] am trying [02:51:32] to tell [02:51:32] is when [02:51:34] the system [02:51:34] is running, [02:51:35] if you press [02:51:35] the power [02:51:35] button, it [02:51:36] gives a [02:51:36] signal to [02:51:37] shut it [02:51:37] down. [02:51:38] Whatever is [02:51:40] happening as [02:51:40] of now, don't [02:51:41] worry. [02:51:42] That's the [02:51:42] instruction set [02:51:44] that is getting [02:51:44] into the [02:51:45] operating system. [02:51:48] The operating [02:51:48] system then [02:51:49] shuts it [02:51:49] down. [02:51:51] So this is [02:51:52] how the [02:51:52] communication [02:51:52] between the [02:51:53] hardware [02:51:53] devices, [02:51:55] users, and [02:51:56] the operating [02:51:56] system in [02:51:57] the triangular [02:51:57] manner, happens [02:51:59] using polling, [02:52:01] interrupts, and [02:52:01] DMV. [02:52:07] are we [02:52:08] good? [02:52:09] Any [02:52:09] queries? [02:52:10] Any [02:52:10] questions? [02:52:22] Okay, [02:52:22] great. [02:52:23] Take care. [02:52:24] Bye-bye. [02:52:25] See you in the [02:52:26] next class. [02:52:27] I understand [02:52:28] you have other [02:52:29] classes. [02:52:30] Sorry to go [02:52:31] overboard. [02:52:32] I'll manage it [02:52:33] from the next [02:52:34] time. [02:52:34] Take care. [02:52:35] Bye-bye.