RE: switching IO-Scheduler...

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

 



Title: RE: switching IO-Scheduler...

hi....
I found a way to switch the io-scheduler, by calling the function elv_iosched_store(..).
!!! great, it worked for me !!!

please correct me if im wrong...

Thanks
Ashok

>On 5/24/07, Thomas De Schampheleire <patrickdepinguin@xxxxxxxxx> wrote:
>> But it is possible to write to that file from a module, isn't it?
>Yes, but why do what to do something from kernel which can be already
>done from userspace?



>thanks
>>
>> Thomas
>>
>> 2007/5/24, Erik Mouw <mouw@xxxxxxxxxxxx>:
> > > -----BEGIN PGP SIGNED MESSAGE-----
> > > Hash: SHA1
> > >
> > > On Thu, May 24, 2007 at 03:09:15PM +0530, ashok.shanmugam@xxxxxxxxx wrote:
> > > >      Can we switch the IO-scheduler on the fly, from a kernel module.
> > >
> > > Yes, but probably not from a kernel module (it's a policy decision, so
> > > it should be handled in userland anyway). From userland:
> > >
> > >  $ cat /sys/block/hda/queue/scheduler
> > >  noop anticipatory deadline [cfq]
> > >  $ echo noop > /sys/block/hda/queue/scheduler
> > >
> > >
> > > Erik
> > >
> > > - --
> > > They're all fools. Don't worry. Darwin may be slow, but he'll
> > > eventually get them. -- Matthew Lammers in alt.sysadmin.recovery
> > > -----BEGIN PGP SIGNATURE-----
> > > Version: GnuPG v1.4.6 (GNU/Linux)
> > >
> > > iD8DBQFGVY2E/PlVHJtIto0RAm2kAJ9wWDfZGbcs/RKDqVQLARzF1oUDmwCfdl4G
> > > vSSS0psY7az6ZU2b1H9OaVM=
> > > =Wnre
> > > -----END PGP SIGNATURE-----
> > >
> > > --
> > > To unsubscribe from this list: send an email with
> > > "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> > > Please read the FAQ at http://kernelnewbies.org/FAQ
> > >
> > >
> >
> >--
> > 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