Hi Sanoj,<br><br>Linux page cache is a shared resource which any process accessing the file can access. There is no mechanism within generic page cache handler to support such quota mechanism, as there is no meta information attached with the page in pagecache.<br>
<br>However it looks possible to me to implement it within a file-system by defining a wrapper structure above each page in page-cache which can hold per user information about the page. NFS maintains a wrapper structure nfs_page over dirty page-cache pages and maintains credentials of user within this structure. However purpose of doing so is for correctness and flush any incompatible pages to NFS server before writing new dirty page to page cache.<br>
<br>It feasible to implement such quota schemes, but may come up with some performance implications and maintenance cost will be high for such a code. But anyways, if you plan to implement such a file-system (or modify existing one), it can be a nice learning project. Infact many people keep looking for kernel project on this list, this looks to me a great idea for that matter.<br>
<br>Rajat <br><br>On Thu, Jan 6, 2011 at 3:25 PM, sanoj <<a href="mailto:k.u.sanoj@gmail.com">k.u.sanoj@gmail.com</a>> wrote:<br>> Hello <br>> my doubt is if linux has any user quota for the usage of page cache,<br>
> i.e. if a user is doing a disk intensive operation, will the I/O performance<br>> for other users other users be affected as they<br>> may incur more cache misses. <br>> thanks, <br>> sanoj<br>><br>> _______________________________________________<br>
> Kernelnewbies mailing list<br>> <a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>> <a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
><br>><br><br>