What is Kernel Memory? What function does it serve?

9

3

While looking at my Task Manager on Windows, I noticed a little thing marked "Kernel Memory." What exactly is this? And what function does it serve compared to the Physical Memory?

Task Manager

Simon Sheehan

Posted 2011-06-08T23:04:09.093

Reputation: 8 641

Answers

12

The 'kernel' is the core bit of the operating system - the part that lets you talk to the hardware, the part that actually does the 'operating' as it were.

Kernel memory, accordingly, is reserved for the parts of the operating system that have to stay in memory (which as you can see is comparatively not all that much) and is off-limits to any other software to prevent any accidents from, say, a badly-written app trying to access memory that's in use elsewhere. (Some bits of the OS can be paged, and you see that reflected there, but that's a bit misleading terminology.)

Shinrai

Posted 2011-06-08T23:04:09.093

Reputation: 18 051

Strictly speaking, only memory actively used to talk to hardware, accessed from an elevated context, needed to manage memory, or needed for the process of paging itself cannot possibly be paged. In practice, lots of small memory uses in the kernel aren't made pageable just because the effort wouldn't be justified. – David Schwartz – 2013-04-27T04:29:01.150

2

Kernel memory is the memory used by the Windows kernel. It includes memory used by core components of Windows along with any device drivers. Typically, the number will be very small, in the hundreds of megabytes.

Hello71

Posted 2011-06-08T23:04:09.093

Reputation: 7 636

8

Mild chuckle at small in Typically, the number will be very small, in the hundreds of megabytes. My first machine had 2 kilobytes total, my second was a C64.

– Rich Homolka – 2011-06-08T23:17:41.640