Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Gentoo Chat
  • Search

CFQ magic!

Opinions, ideas and thoughts about Gentoo. Anything and everything about Gentoo except support questions.
Post Reply
  • Print view
Advanced search
18 posts • Page 1 of 1
Author
Message
venkat
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Thu Sep 18, 2003 4:27 pm
Location: USA

CFQ magic!

  • Quote

Post by venkat » Wed Feb 11, 2004 7:33 pm

Hi guys,

I had a significant improvement in application start-up times once I switched to CFQ scheduler yesterday. Applications started up real quick and the whole UI became very responsive.

I started with an upgrade to KDE 3.2 on a 2.4.23-ck1, looks nice, had some bugs here and there but didn't do much on performance. Enabling transparency on panels and menus looks good but only at the cost of performance.

I switched to 2.6.2-mm1, had few non-fatal errors but everything worked fine. But I didn't notice a performance gain here.

I switched to NPTL, compiling glibc again. Had the /lib/libc.so.6 error that the other threads here mention about. It didn't do any harm though. I noticed xmms, mozilla-firefox loading with once instance instead of usual many. But again, no big performance boost here.

I read about scheduler options somewhere here and looked for what scheduler I was using from dmesg. Looked like I used anticipatory. I inserted the kernel parameter elevator=cfq and rebooted the box.

Just couldn't believe my eyes, things started responding so fast. I saw some significant improvement in oofice startup times. Everything loads fast and clean!

I haven't noticed a crash untill now! Let's see. Now I wonder, is it just CFQ or the combined effect of 2.6.2+NPTL+KDE-3.2???

Have fun!
Top
Moled
l33t
l33t
User avatar
Posts: 635
Joined: Wed Jul 09, 2003 2:44 am

Re: CFQ magic!

  • Quote

Post by Moled » Wed Feb 11, 2004 8:50 pm

venkat wrote:I switched to NPTL, compiling glibc again. Had the /lib/libc.so.6 error that the other threads here mention about.

this is fixed in the latest version

I ought to give cfq a go
Top
venkat
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Thu Sep 18, 2003 4:27 pm
Location: USA

  • Quote

Post by venkat » Thu Feb 12, 2004 7:02 pm

I think by latest version you mean from the ~x86 branch? I have latest stable version of glibc. It is still there.

But this whole thing rocks, I was compiling QT yesterday with 100% CPU load, the whole damn system was as responsive as there was nothing going on in the background!

I gotta fine tune the system now to make it more stable and to remove unwanted/unused packages.
Top
pranyi
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Thu Mar 06, 2003 9:51 pm
Location: Germany

  • Quote

Post by pranyi » Fri Feb 13, 2004 9:45 pm

I see significant performance improvement in KDE 3.2 without changing away from the anticipatory scheduler.
Top
IvanHoe
l33t
l33t
User avatar
Posts: 658
Joined: Sat Oct 05, 2002 3:50 pm

  • Quote

Post by IvanHoe » Fri Feb 13, 2004 9:52 pm

Can anybody explain the fundamental differences between anticipatory and CFQ?
Top
Spawn of Lovechild
Apprentice
Apprentice
User avatar
Posts: 253
Joined: Tue Feb 03, 2004 12:47 pm
Location: Århus, Denmark
Contact:
Contact Spawn of Lovechild
Website

  • Quote

Post by Spawn of Lovechild » Fri Feb 13, 2004 10:17 pm

with CFQ you create a runqueue for every process (user, or what ever you want to schedule fairly between - default to processes) and add the processes request of IO access to the runqueue - then you round robin between them.
Thus every runqueue has equal access to IO read and write.

With AS the basic idea is to wait a tiny bit after each read operation, so if a process requests data again it will get it at once rather than waiting - the boon is that the program gets it's data without having to wait however if the program doesn't read again the wait period is wasted and add to the latency between request and completion. Write requests are just executed since those normally go directly to the harddisks hardware since that takes care of writing once the disk is idle.
Thus every process has timelimited priority access to Read IO and unlimited write access.

In theory AS should be faster but as it turns out it's extremely hard to predict when to wait and when not to.

CFQ has certain server uses, when you want to limit IO to user groups fx. it's mighty smart technology
Proud to be a 22 year old Infidel, GNOME lover and member of LIK.
Top
feffi
Apprentice
Apprentice
User avatar
Posts: 216
Joined: Sat Mar 29, 2003 5:50 pm
Location: Sol->Earth->Germany->Giessen
Contact:
Contact feffi
Website

AS CQF or NOOP

  • Quote

Post by feffi » Fri Feb 13, 2004 11:38 pm

Hi guys,
i definetly can confirm that the system is more responsive with any elevator orther than the default anticipatory scheduler. I try NOOP at the moment (which is not really a scheduler, is does merely nothing to schedule) and will give CFQ a try later...
have fun

feffi

/(bb|[^b]{2})/ that is the Question!

Gentoo-Wiki: Acer Travelmate 803 LCi manual
Top
IvanHoe
l33t
l33t
User avatar
Posts: 658
Joined: Sat Oct 05, 2002 3:50 pm

  • Quote

Post by IvanHoe » Wed Feb 18, 2004 12:47 am

Thanks for the info, Spawn of Lovechild.
:)
Top
castorilo
Apprentice
Apprentice
User avatar
Posts: 157
Joined: Wed Dec 25, 2002 5:06 pm

I'll second that

  • Quote

Post by castorilo » Wed Feb 18, 2004 2:27 am

Kde 3.2 was an improvement. However, this was a quantum leap. This made the system incredibly responsive.

Thanks for the tip.
Top
m0sk
n00b
n00b
User avatar
Posts: 39
Joined: Fri Apr 18, 2003 11:45 pm
Location: Belgium

  • Quote

Post by m0sk » Wed Feb 18, 2004 5:34 am

Seems I might give the CFQ scheduler a try. I have been running 2.6.1-mm5 with anticipatory scheduler for about a month, and to me my system has been incredibly responsive. Now that the whole slew of Kde/X/Qt/Firefox/Thunderbird/... updates is finally done here on my humble pIII-500, it's time again to start playing with new kernels ;)

Does CFQ only come with mm/ck patchsets, or is it available too in vanilla 2.6.x?

Btw, 2.6.3 was released today, final 2.6.3-mm series should be in Portage in a few days I suppose. Yay!
panic ("No CPUs found. System halted.\n");
Top
wrc1944
Advocate
Advocate
Posts: 3467
Joined: Thu Aug 15, 2002 10:33 am
Location: Gainesville, Florida

  • Quote

Post by wrc1944 » Wed Feb 18, 2004 11:50 pm

I too can confirm switching to the CFQ scheduler has resulted in very noticable improvement. It's like I overclocked my 1700Mhz cpu by an extra 1000Mhz, and went to PC3200 DDR memory on a 400Mhz FSB motherboard. I just did 2.6.3-mm1, with CFQ=y, and it's really the best kernel I've used so far- and I've tested all the versions since 2.5.67, including all mm and ck patches.

Of course this is just how it works on my system, so as usual, YMMV, but I'm not exagerating here- it really does make a difference.

wrc1944
Main box- AsRock x370 Gaming K4
Ryzen 7 3700x, 3.6GHz, 16GB GSkill Flare DDR4 3200mhz
Samsung SATA 1000GB, Radeon HD R7 350 2GB DDR5
OpenRC Gentoo ~amd64 plasma, glibc-2.41-r2, gcc-15.1.0
kernel-6.15.6 USE=experimental python3.13.3
Top
pranyi
Apprentice
Apprentice
User avatar
Posts: 293
Joined: Thu Mar 06, 2003 9:51 pm
Location: Germany

  • Quote

Post by pranyi » Thu Feb 19, 2004 12:09 pm

Is CFQ included in the vanilla 2.6.0 kernel?
Top
NecroticFlower
n00b
n00b
User avatar
Posts: 31
Joined: Fri Jan 30, 2004 4:31 am
Location: Atlanta

  • Quote

Post by NecroticFlower » Thu Feb 19, 2004 1:40 pm

it is my experience that with CFQ the system slows down and/or becomes unresponsive under heavy load. i have switched back to anticipatory scheduler and my machine runs better then it did with CFQ.
Pimped out
http://pimpress.com
Registered Linux User #346075 http://counter.li.org/
Top
Epyon
l33t
l33t
User avatar
Posts: 754
Joined: Thu Sep 11, 2003 2:08 am
Location: NJ, USA

  • Quote

Post by Epyon » Thu Feb 19, 2004 2:17 pm

Yeah under heavy load cfq gets kind of slow but under normal conditions it seems faster than anticipatory
Top
gurke
Apprentice
Apprentice
Posts: 260
Joined: Thu Jul 10, 2003 4:40 pm

  • Quote

Post by gurke » Thu Feb 19, 2004 3:44 pm

always heavy load over here (this is gentoo), so no cfq. :wink:
Top
Crg
Guru
Guru
User avatar
Posts: 345
Joined: Wed May 29, 2002 11:48 pm
Location: London

Re: CFQ magic!

  • Quote

Post by Crg » Thu Feb 19, 2004 6:47 pm

venkat wrote:I switched to NPTL, compiling glibc again. Had the /lib/libc.so.6 error that the other threads here mention about. It didn't do any harm though. I noticed xmms, mozilla-firefox loading with once instance instead of usual many. But again, no big performance boost here.
That is just because of the different way the threads are implemented, each thread showed up as a process with LinuxThreads but with NPTL it doesn't show each thread - this isn't anything to do with how many instances are running.
Top
venkat
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Thu Sep 18, 2003 4:27 pm
Location: USA

  • Quote

Post by venkat » Sat Feb 21, 2004 9:21 pm

with respect to heavy loads, i was recompiling my whole system (with -j2) with kernel compiling on another console. i still was able to load openoffice reasonably faster and NOTHING changed with respect to responsiveness. i started loving this so much that i am logging into this unstable system (~x86 glibc, kde 3.2, 2.6-mm kernels etc.) more often than my stable 2.4 based partition.
Top
venkat
Tux's lil' helper
Tux's lil' helper
Posts: 110
Joined: Thu Sep 18, 2003 4:27 pm
Location: USA

Re: CFQ magic!

  • Quote

Post by venkat » Sat Feb 21, 2004 9:29 pm

Crg wrote:That is just because of the different way the threads are implemented, each thread showed up as a process with LinuxThreads but with NPTL it doesn't show each thread - this isn't anything to do with how many instances are running.
thx for the clarification Crg, i understood the concept before, but just wanted to emphasize the fact that though i had that error with libc the system was using nptl (that reflects in the thread handling) :)
Top
Post Reply
  • Print view

18 posts • Page 1 of 1

Return to “Gentoo Chat”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic