From the course: Linux Device Drivers

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Write a block driver

Challenge: Write a block driver - Linux Tutorial

From the course: Linux Device Drivers

Start my 1-month free trial

Challenge: Write a block driver

(upbeat music) - [Instructor] Now we have some challenges for you, so you could do some hands on stuff. Some of these are pretty straightforward and don't require much special stuff. Like the first question here, we're going to make use of the drop caches proc file system file. So you need to be root when you work with that file. So what we're going to do is we're going to time how long it takes to grep underneath user share for a string. So do the grep and time how long it takes and then do the grep again, time how long it takes. It's really the second timing that we're interested in, the first time you do it it'll bring as much of that into cache as it can. And then the second time you do it the time should be kind of optimal for your system. And then a step one B, you're going to force everything out of the caches, actually drop those caches. We only read from user share. We didn't…

Contents