* Patch or module?
@ 2002-02-19 18:23 cschumpf
2002-02-19 19:08 ` Oliver Neukum
0 siblings, 1 reply; 4+ messages in thread
From: cschumpf @ 2002-02-19 18:23 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Patch or module?
@ 2002-02-19 18:27 cschumpf
0 siblings, 0 replies; 4+ messages in thread
From: cschumpf @ 2002-02-19 18:27 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Patch or module?
@ 2002-02-19 18:27 cschumpf
0 siblings, 0 replies; 4+ messages in thread
From: cschumpf @ 2002-02-19 18:27 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Patch or module?
2002-02-19 18:23 Patch or module? cschumpf
@ 2002-02-19 19:08 ` Oliver Neukum
0 siblings, 0 replies; 4+ messages in thread
From: Oliver Neukum @ 2002-02-19 19:08 UTC (permalink / raw)
To: cschumpf, linux-kernel
On Tuesday 19 February 2002 19:23, cschumpf@gmx.net wrote:
> 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.
You cannot do this on the device level as the writing task is not identical
to the task actual having caused the requirement to do IO.
HTH
Oliver
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-02-19 19:09 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-19 18:23 Patch or module? cschumpf
2002-02-19 19:08 ` Oliver Neukum
-- strict thread matches above, loose matches on Subject: below --
2002-02-19 18:27 cschumpf
2002-02-19 18:27 cschumpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox