Re: [Vserver] vsched and multi-CPU

2006-05-30 Thread Herbert Poetzl
On Tue, May 30, 2006 at 04:12:55PM +0200, Mehdi Bennani wrote:
> Hello,
> 
> I've read the pages about vsched on
> 
> http://linux-vserver.org/vsched+explained:
> http://linux-vserver.org/Scheduler+Parameters
> 
> I'm trying to figure out how vserver deals with multi-processor
> systems and systems with hyperthreaded processors (detected as
> bi-processor).
> 
> and I would like an explanation about something that seems ambigous 
> to me:
> 
> --Both pages seem to say that (fill-rate) / (interval) is the
> proportion for ONE processor in the system. But a sentence in
> http://linux-vserver.org/vsched+explained...:
> 
> "So, if you have four CPUs and you want one context to get an average
> of one whole CPU to itself, then you'd set fill-rate to 1 and interval
> to 4."
> 
> ... is not clear... does it mean that (fill-rate) / (interval) is the
> proportion for the FOUR CPU's?
> 
> Where is the truth?

as usually the truth is somewhere inbetween ...
actually we have to differentiate here between
the stable and the devel releases, because:

stable has a single token bucket for all cpus
and the scheduler adds 'rate' tokens per cpu
and 'interval'

development has one token bucket per cpu and 
two rate/interval values for each of them, to
control normal and idle time

> --Is a processor with Hyperthreading counted as two processors 
>   by vserver?

yes, as SMT appears quite similar to SMP at
least regarding the scheduler and runqueues

HTH,
Herbert

> Thanks,
> 
> Mehdi Bennani
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] vsched and multi-CPU

2006-05-30 Thread Mehdi Bennani

Hello,

I've read the pages about vsched on

http://linux-vserver.org/vsched+explained:
http://linux-vserver.org/Scheduler+Parameters

I'm trying to figure out how vserver deals with multi-processor
systems and systems with hyperthreaded processors (detected as
bi-processor).


and I would like an explanation about something that seems ambigous to me:


--Both pages seem to say that (fill-rate) / (interval) is the
proportion for ONE processor in the system. But a sentence in
http://linux-vserver.org/vsched+explained...:

"So, if you have four CPUs and you want one context to get an average
of one whole CPU to itself, then you'd set fill-rate to 1 and interval
to 4."

... is not clear... does it mean that (fill-rate) / (interval) is the
proportion for the FOUR CPU's?

Where is the truth?

--Is a processor with Hyperthreading counted as two processors by vserver?


Thanks,


Mehdi Bennani
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] vsched

2006-04-11 Thread GarconDuMonde
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

hi,

i wasn't really sure about vsched so i read through the archives adn various
relevant pages that i could find and have copied stuff up onto a new page on the
wiki: http://linux-vserver.org/vsched+explained

please feel free to add/change/clarify whatever :)

- --

love and solidarity,

--gdm

http://docs.indymedia.org/view/Main/GarconDuMonde

i have a NEW key:
gpg --keyserver pgp.mit.edu --recv-keys 594B97C2
Key fingerprint = 7B70 F22D F275 D111 3A04  F9EE 0E25 4944 594B 97C2



-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.1 (Darwin)

iD8DBQFEPE4SDiVJRFlLl8IRAgIhAJ0bexwEM+qAuuR7PqV2ahc+RLzGMgCdHmib
DuM3pA72bu/srI3ZlvXbpp0=
=SPX8
-END PGP SIGNATURE-

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vsched

2005-03-31 Thread Herbert Poetzl
On Fri, Apr 01, 2005 at 12:31:45AM +0400, Peter V. Saveliev wrote:
> ...
> 
> # vsched --help
> Usage:
>   vsched
>   [--xid ]
> 8<--
> 
> Can anybody tell me, what mean these options?
> 
>   [--fill-rate ] -- in which measure? percents?
tokens

>   [--interval ] -- milliseconds? nanoseconds? crocodiles per 
> mile? ;)
jiffies or ticks ...

>   
>   [--prio-bias ] -- what is "bias"?
not used for now ...

> 8<--
>   [--] [ *]

HTH,
Herbert

> -- 
> Peter V. Saveliev
> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vsched

2005-03-31 Thread Gregory (Grisha) Trubetskoy
see this thread (read the whole thread, my post has some inaccuracies 
corrected in follow-ups)

http://www.mail-archive.com/vserver@list.linux-vserver.org/msg03324.html
Grisha
On Fri, 1 Apr 2005, Peter V. Saveliev wrote:
...
# vsched --help
Usage:
 vsched
[--xid ]
8<--
Can anybody tell me, what mean these options?
[--fill-rate ] -- in which measure? percents?
[--interval ] -- milliseconds? nanoseconds? crocodiles per 
mile? ;)

[--prio-bias ] -- what is "bias"?
8<--
[--] [ *]
--
Peter V. Saveliev
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] vsched

2005-03-31 Thread Peter V. Saveliev
...

# vsched --help
Usage:
  vsched
[--xid ]
8<--

Can anybody tell me, what mean these options?

[--fill-rate ] -- in which measure? percents?
[--interval ] -- milliseconds? nanoseconds? crocodiles per 
mile? ;)

[--prio-bias ] -- what is "bias"?
8<--
[--] [ *]


-- 
Peter V. Saveliev
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] vsched segfault (and workaround ;)

2004-12-20 Thread Adrian Reyer
Hi there,

as pointed out by Hollow, confirmed by me and workarounded by Bertl,
vsched with hard limits segfaults after setting the values.
by ading '-- true' to the command line, it stops segfaulting while
continue working correctly.

Regards,
Adrian
-- 
LiHAS - LinuxHaus Stuttgart  Fon:  +49 (7 11) 2 85 19 05
Inh.: Adrian Reyer   Fax:  +49 (7 11) 5 78 06 92
 Mail: [EMAIL PROTECTED]
Linux, Netzwerke, Consulting & Support   http://lihas.de/
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vsched bug?

2004-10-19 Thread Enrico Scholz
[EMAIL PROTECTED] ("Gregory (Grisha) Trubetskoy") writes:

> And it looks like utils pass v3 while the kernel treats it as v2 and
> so my fill_rate becomes set_mask,

Thanks for the report and the analysis; should be fixed in 0.30.196



Enrico
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] vsched

2004-10-07 Thread Herbert Poetzl
On Thu, Oct 07, 2004 at 11:52:45AM -0400, Gregory (Grisha) Trubetskoy wrote:
> 
> Is there any documentation/examples of how to use vsched and the sched_* 
> flags? I couldn't find anything other than a few mentions in the IRC 
> logs...

the linux-vserver paper should explain the
token bucket and how it is supposed to work

when I get around, I'll do an additional
scheduler howto, until then the available
info should be sufficient, if not, please
let me know ...

best,
Herbert

> Thanks!
> 
> Grisha
> 
> ___
> Vserver mailing list
> [EMAIL PROTECTED]
> http://list.linux-vserver.org/mailman/listinfo/vserver
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] vsched

2004-10-07 Thread Gregory (Grisha) Trubetskoy
Is there any documentation/examples of how to use vsched and the sched_* 
flags? I couldn't find anything other than a few mentions in the IRC 
logs...

Thanks!
Grisha
___
Vserver mailing list
[EMAIL PROTECTED]
http://list.linux-vserver.org/mailman/listinfo/vserver