Questions tagged [scheduling]

A technique for scheduling tasks to be run at specific time or on specific event.

63 questions
31
votes
3 answers

How does Windows processor affinity work with hyperthreaded CPUs?

How does Windows processor affinity work with hyperthreaded CPUs? Let's use an example (pictured) of a system with four cores, each with a hyper-threaded virtual core. Which cores correspond to each "CPU" below? Does (say) CPU 6 and CPU 7 below…
Charles Burns
  • 825
  • 1
  • 9
  • 15
11
votes
4 answers

Is there an rsync-like mode for WinSCP (or a similar tool)?

I need to be able to do a periodic sync of content off my Windows 7 x64 laptop to my offsite CentOS 6 webserver. Is there a tool/mode like rysnc for WinSCP or similar? For a variety or reasons, Dropbox is not an option here.
warren
  • 9,920
  • 23
  • 86
  • 147
8
votes
1 answer

nice has no effect in Linux unless the same shell is used

If I enter in two different root terminals: nice -n 19 burnK7 & and nice -n -19 burnK7 & Then both processes receive about 50% of the available CPU time - not expected and certainly not desired. If I run in the same root terminal: nice -n 19…
Fela Maslen
  • 439
  • 5
  • 18
7
votes
7 answers

Linux/Bash, how to schedule commands in a FIFO queue?

I want the ability to schedule commands to be run in a FIFO queue. I DON'T want them to be run at a specified time in the future as would be the case with the "at" command. I want them to start running now, but not simultaneously. The next scheduled…
Andrei
  • 483
  • 1
  • 3
  • 11
6
votes
3 answers

Scheduling algorithm used in Windows 7

What is the scheduling algorithm used in Windows 7?
arulappan
  • 993
  • 4
  • 12
  • 33
5
votes
1 answer

Running a virtual machine on a dedicated processor or core

Our base system runs on Linux but unfortunately the UI has to be on Windows. Its a long story. But thats the requirement. So our idea was to run Windows in a virtual machine using VirtualBox or Xen. Because of our real-time performance constraints,…
Cocoro Cara
  • 125
  • 1
  • 8
5
votes
1 answer

Multicore system. How are the cores "sorted"

If I have a system with let's say two Quadcore CPUs and HyperThreading enabled, how do I know how the phsyical and virtual cores are sorted? For example if I force a process to run on "CPU 0" how to know which Core this really is? I remember a…
asdrubael
  • 637
  • 1
  • 6
  • 10
4
votes
1 answer

Increasing value of sched_latency_ns and sched_min_granularity_ns

Why do I get an error message when I try to increase the values of these two parameters: #cat /proc/sys/kernel/sched_latency_ns 1000000000 #echo 2000000000 > /proc/sys/kernel/sched_latency_ns bash: echo: write error: Invalid argument # I get the…
Prasoon Tiwari
  • 141
  • 1
  • 2
3
votes
0 answers

Optimize linux USB hub IO scheduling for external harddrives

When using several harddrives on an USB 3.0 hub, copying large files between them gives transfer rates far below expectation. My guess is, that the hub introduces contention delays as we see if copying files inside a single harddrive. For example,…
dronus
  • 1,870
  • 4
  • 24
  • 42
3
votes
1 answer

Does the Windows scheduler allocate equal length quanta to threads?

Is the time slice (quantum) that the Windows Kernel Dispatcher allocates to threads the same length for every thread, or does it base the size of quantum on the priority of the thread like Linux does?
user49786
3
votes
4 answers

ALWAYS run commands with low priority on unix?

I am not asking how to nice and renice a command on UNIX. What happens is that on a particular machine into which I frequently log I am only allowed to run long-running processes with low priority (nice 19). Is there a way for all my commands on…
laramichaels
  • 699
  • 1
  • 8
  • 12
2
votes
2 answers

Does an operating system itself take up resources (aside from the space it is installed on)?

I just finished a course on operating systems and the definition of an operating system is still unclear to me. Does any operating system itself take up resources such as CPU and memory? For example the scheduling algorithm must take some processing…
Celeritas
  • 8,159
  • 36
  • 107
  • 150
2
votes
1 answer

crontab schedule rule misunderstanding

I've got some strange behavior of one rule working unexpected. */40 * * * * myshellcommand here I though it would run each 40 minutes, e.g. 00.00 00.40 01.20 02.00 etc but instead it runs 00.00 00.40 01.00 01.40 02.00 etc. Does anyone have an…
heximal
  • 175
  • 1
  • 7
2
votes
0 answers

CFQ hard drive scheduling algorithm

The CFQ algorithm uses an ordered set of queues based on the I/O priority of the processes that made the requests. That means there's a queue for process of priority, let say, 1, another one for priority 2, etc. Then the requests are placed into a…
Jcao02
  • 121
  • 2
2
votes
1 answer

Can kvm guest get more CPUs than it has?

When I run a vm with a single virtual CPU inside KVM, is it possible that the vm can actually get more CPU cycles than one whole CPU can has, if there is no other vm running in the host? In another word, can the vm get more CPUs than it has? I does…
Zhen
  • 41
  • 3
1
2 3 4 5