Re: page cache query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 16, 2009 at 10:10 PM, Nagaprabhanjan Bellari
<nagp.knb@xxxxxxxxx> wrote:
> I ask this because /dev/zero is a character device, so wondering where will
> page cache come in.
>
> tomahawk>ls -l /dev/zero
> crw-rw-rw-  1 root root 1, 5 Nov 13 02:45 /dev/zero

By reading /dev/zero continously, actually you allocate anonymous
memory in virtual memory. that will push clean file backed pages (or
in this case, page cache) back to the backing block device to make
room for the new allocated memory area.


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux