lkml.org 
[lkml]   [2002]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPatch or module?
If thats not the right group to discuss that, please let me know.

I would like to write an IO-Bandwidth-Limiter on per Process and per
User-Basis for a few disk drives. I can either patch the kernel functions read/write
and enhance the task- and user-structure and globally check if the correct
devices are adressed or I can write my own module, twist pointers from the
filesystems on the drives and store the information about users and tasks there.

I like the second approach way better, but its maybe slower. I have to do an
extra search in my structures for user and task ids, which is maybe more
expensive than an 'if' in the read/write-funktion.

Any guidelines? Any recommendations?

Thanks


--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:24    [W:0.026 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site