kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* cache quota
@ 2011-01-06  9:55 sanoj
  2011-01-06 13:02 ` Rajat Sharma
  0 siblings, 1 reply; 2+ messages in thread
From: sanoj @ 2011-01-06  9:55 UTC (permalink / raw)
  To: kernelnewbies

Hello
my doubt is if linux has any user quota for the usage of page cache,
i.e. if a user is doing a disk intensive operation, will the I/O performance
for other users other users be affected as they
may incur more cache misses.

thanks,
sanoj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110106/5c56f5b9/attachment-0001.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* cache quota
  2011-01-06  9:55 cache quota sanoj
@ 2011-01-06 13:02 ` Rajat Sharma
  0 siblings, 0 replies; 2+ messages in thread
From: Rajat Sharma @ 2011-01-06 13:02 UTC (permalink / raw)
  To: kernelnewbies

Hi Sanoj,

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.

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.

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.

Rajat

On Thu, Jan 6, 2011 at 3:25 PM, sanoj <k.u.sanoj@gmail.com> wrote:
> Hello
> my doubt is if linux has any user quota for the usage of page cache,
> i.e. if a user is doing a disk intensive operation, will the I/O
performance
> for other users other users be affected as they
> may incur more cache misses.
> thanks,
> sanoj
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110106/dc57acf0/attachment-0001.html 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-06 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06  9:55 cache quota sanoj
2011-01-06 13:02 ` Rajat Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).