LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 02-28-2013, 11:04 PM   #1
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,233

Rep: Reputation: 176Reputation: 176
Time Slices.


Back in the "good old days" of Desqview I vaguely remember being able to set the "time slices".... or was it "clock ticks".... It has been so long I don't remember the correct term.
I bring this up because for quite some time now I've noticed downloads or streaming video, whatever, slow down if I do something else in another window. For example, I can be downloading a file in a browser and then open a game in KPatience and watch the download slow down and then speed up when I go back to the browser. Ditto when watching streaming video and playing a card game during the commercials.
This is more apparent in Xfce than in KDE, but it happens in both.
Is there anyway to set the time slices in either desktop?
Thanks.

Last edited by cwizardone; 02-28-2013 at 11:06 PM.
 
Old 03-01-2013, 04:20 AM   #2
Mark Pettit
Member
 
Registered: Dec 2008
Location: Cape Town, South Africa
Distribution: Slackware 14.1 64 Multi-Lib
Posts: 425

Rep: Reputation: 123Reputation: 123
I thought this was the exact reason why Con Kolivas upped and left the "official kernel developers" and now runs his own patch set.
 
Old 03-01-2013, 08:40 AM   #3
cwizardone
Senior Member
 
Registered: Feb 2007
Distribution: Slackware64-current & "True Multilib." PC-BSD.
Posts: 2,233

Original Poster
Rep: Reputation: 176Reputation: 176
Interesting. Thanks.
I found an old interview with Dr. Kolivas at,

http://apcmag.com/interview_with_con...he_desktop.htm


This quote pretty much says it all, IMHO, on the topic of developers vs the end user,

Quote:
...If there is any one big problem with kernel development and Linux it is the complete disconnection of the development process from normal users. You know, the ones who constitute 99.9% of the Linux user base...
KDE 4.xx comes to mind and throw in some of the twaddle from redhat, etc., etc., etc.

Last edited by cwizardone; 03-01-2013 at 08:48 AM.
 
Old 03-01-2013, 09:08 AM   #4
GazL
Senior Member
 
Registered: May 2008
Posts: 3,380

Rep: Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912Reputation: 912
Slackware already ships with the shortest scheduling interval option set in the kernel (CONFIG_HZ_1000 - I change mine back to 300 in order to reduce scheduling overhead). If you're up for recompiling the kernel you might want to try setting CONFIG_SCHED_AUTOGROUP and see how that works out for you. Personally I don't care for it and prefer to use nice priorities, but you may find it suits your workload.

Failing that, you could try using 'nice' when you start things, which is what I do.
 
Old 03-01-2013, 01:16 PM   #5
Martinus2u
Member
 
Registered: Apr 2010
Distribution: Slackware
Posts: 345

Rep: Reputation: 56
Quote:
Originally Posted by GazL View Post
Slackware already ships with the shortest scheduling interval option set in the kernel (CONFIG_HZ_1000 - I change mine back to 300 in order to reduce scheduling overhead). If you're up for recompiling the kernel you might want to try setting CONFIG_SCHED_AUTOGROUP and see how that works out for you.
Only that timeslices or grouping are not necessarily the solution to the problem (as it seems the available cpu resources are the bottleneck in cwizard's case). In that scenario using BFS (Con Kolivas' scheduler) and schedtool (in order to set the scheduling class of certain processes) can make a huge difference.

Quote:
Failing that, you could try using 'nice' when you start things, which is what I do.
I do a similar but more powerful thing with BFS and schedtool. For instance, all my xterms run in SCHED_IDLEPRIO by default. This means I can compile a kernel on all 8 cores and not notice the slightest impact on my desktop applications or 3D games (running in SCHED_NORMAL).

I also run an aftermarket I/O scheduler (called BFQ) for better I/O throughput of tasks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cant access all slices nap-ster Solaris / OpenSolaris 6 07-02-2012 04:32 PM
Login Error after adjusting space on slices SBN Solaris / OpenSolaris 3 04-18-2012 10:46 AM
slices and file system binary_0011 Solaris / OpenSolaris 4 08-20-2009 03:44 PM
rw access to Solaris ufs slices from Linux shachter Solaris / OpenSolaris 1 07-06-2007 11:43 AM
Defining the Slices desbyleo Solaris / OpenSolaris 10 05-07-2003 09:18 AM


All times are GMT -5. The time now is 10:31 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration