LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Time Slices. (http://www.linuxquestions.org/questions/slackware-14/time-slices-4175452170/)

cwizardone 02-28-2013 11:04 PM

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.
:hattip:

Mark Pettit 03-01-2013 04:20 AM

I thought this was the exact reason why Con Kolivas upped and left the "official kernel developers" and now runs his own patch set.

cwizardone 03-01-2013 08:40 AM

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.

GazL 03-01-2013 09:08 AM

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.

Martinus2u 03-01-2013 01:16 PM

Quote:

Originally Posted by GazL (Post 4902467)
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.


All times are GMT -5. The time now is 04:49 PM.