[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: rglug: Re: Round Robin
- Subject: Re: rglug: Re: Round Robin
- From: "Sveinn í Felli (IMAP)" <sveinki ( at ) nett ( dot ) is>
- Date: Wed, 19 Nov 2008 08:43:30 +0000
- Cc: rglug ( at ) rglug ( dot ) org
- Delivered-to: mailing list rglug@rglug.org
- In-reply-to: <cmu-lmtpd-82047-1227010448-6@postur.skrin.is>
- List-help: <mailto:rglug-help@rglug.org>
- List-post: <mailto:rglug@rglug.org>
- List-subscribe: <mailto:rglug-subscribe@rglug.org>
- List-unsubscribe: <mailto:rglug-unsubscribe@rglug.org>
- Mailing-list: contact rglug-help@rglug.org; run by ezmlm
- References: <cmu-lmtpd-78429-1227004824-15@postur.skrin.is> <49229f84.0c17400a.331e.0886SMTPIN_ADDED@mx.google.com> <cmu-lmtpd-79631-1227007022-20@postur.skrin.is> <200811181158.mAIBwbbQ026717@us-fl.aves.f-prot.com> <20081118121134.M17067@klaki.net> <492294de.1138400a.30fd.5edcSMTPIN_ADDED@mx.google.com> <cmu-lmtpd-78429-1227004824-15@postur.skrin.is> <49229f84.0c17400a.331e.0886SMTPIN_ADDED@mx.google.com> <cmu-lmtpd-79631-1227007022-20@postur.skrin.is> <200811181158.mAIBwbbQ026717@us-fl.aves.f-prot.com> <cmu-lmtpd-82047-1227010448-6@postur.skrin.is>
- User-agent: Thunderbird 2.0.0.17 (X11/20080922)
Sælt veri fólkið;
Bjarni R. Einarsson wrote:
>>
>> Það er það sem round-robin gerir, það skiptir
>> bandvíddinni jafnt milli þeirra flokka sem eru
>> tilgreindir. Svo er áhugaverða spurningin: hvað gerist
>> innan hvers flokks? hvað gerist ef flokkur nýtir ekki
>> alla bandvíddina sína?
Athyglisverð spurning.
Samkvæmt dæmi á wikipediu um virkni Round Robin, gerist
þetta svona:
"Example: The time slot could be 100 milliseconds. If a job1
takes a total time of 250ms to complete, the round-robin
scheduler will suspend the job after 100ms and give other
jobs their time on the CPU. Once the other jobs have had
their equal share (100ms each), job1 will get another
allocation of CPU time and the cycle will repeat. This
process continues until the job finishes and needs no more
time on the CPU.
* Job1 = Total time to complete 250ms (quantum 100ms).
1. First allocation = 100ms.
2. Second allocation = 100ms.
3. Third allocation = 100ms but job1 self-terminates
after 50ms.
4. Total CPU time of job1 = 250ms.
[edit] Data packet scheduling
In best-effort packet switching and other statistical
multiplexing, round-robin scheduling can be used as an
alternative to first-come first-served queuing."
Spurningin er hvort þessum afgangs 50ms í lið 3. sé
yfirhöfuð úthlutað aftur; fer það kannski eftir harðvörunni?
Er bara að eyða afgangs bandvídd :)
Sveinn í Felli