[Vserver] vsched and multi-CPU
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
Re: [Vserver] vsched and multi-CPU
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
-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
[Vserver] vsched
... # vsched --help Usage: vsched [--xid xid] 8-- Can anybody tell me, what mean these options? [--fill-rate rate] -- in which measure? percents? [--interval interval] -- milliseconds? nanoseconds? crocodiles per mile? ;) skip cause=clear/ [--prio-bias bias] -- what is bias? 8-- [--] [command args*] -- Peter V. Saveliev ___ Vserver mailing list Vserver@list.linux-vserver.org http://list.linux-vserver.org/mailman/listinfo/vserver
Re: [Vserver] vsched
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 xid] 8-- Can anybody tell me, what mean these options? [--fill-rate rate] -- in which measure? percents? [--interval interval] -- milliseconds? nanoseconds? crocodiles per mile? ;) skip cause=clear/ [--prio-bias bias] -- what is bias? 8-- [--] [command args*] -- 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
On Fri, Apr 01, 2005 at 12:31:45AM +0400, Peter V. Saveliev wrote: ... # vsched --help Usage: vsched [--xid xid] 8-- Can anybody tell me, what mean these options? [--fill-rate rate] -- in which measure? percents? tokens [--interval interval] -- milliseconds? nanoseconds? crocodiles per mile? ;) jiffies or ticks ... skip cause=clear/ [--prio-bias bias] -- what is bias? not used for now ... 8-- [--] [command args*] 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
[Vserver] vsched segfault (and workaround ;)
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?
[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