<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://linux-vserver.at/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SilvioRhatto</id>
		<title>Linux-VServer - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="http://linux-vserver.at/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=SilvioRhatto"/>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Special:Contributions/SilvioRhatto"/>
		<updated>2026-04-09T15:45:55Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.20.2</generator>

	<entry>
		<id>http://linux-vserver.at/Applying_CPU_Limits</id>
		<title>Applying CPU Limits</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Applying_CPU_Limits"/>
				<updated>2008-12-27T01:02:39Z</updated>
		
		<summary type="html">&lt;p&gt;SilvioRhatto: Initial version&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Applying CPU limits =&lt;br /&gt;
&lt;br /&gt;
This is a short summary on how to apply limits. This doesn't cover how to choose the values but just on how to apply the numbers in a running vserver without saving the configuration.&lt;br /&gt;
&lt;br /&gt;
== Kernel config ==&lt;br /&gt;
&lt;br /&gt;
First check whether the kernel is with '''CONFIG_VSERVER_HARDCPU''' enabled:&lt;br /&gt;
 &lt;br /&gt;
   # cat /boot/config-blah | grep CONFIG_VSERVER_HARDCPU&lt;br /&gt;
   CONFIG_VSERVER_HARDCPU=y&lt;br /&gt;
&lt;br /&gt;
== Context flag ==&lt;br /&gt;
&lt;br /&gt;
Then check if the vserver you want to apply limits has the [http://linux-vserver.org/Capabilities_and_Flags#Context_flags_.28cflags.29 sched_hard] context flag enabled by checking the contents of ''/proc/virtual/&amp;lt;xid&amp;gt;/status''. The sched_hard flag is ''0x00000100'', so you have to find this value summed up in the vserver flag (see [http://www.mail-archive.com/vserver@list.linux-vserver.org/msg10448.html this message] for details). If its not enabled, use the following command (more info [http://www.mail-archive.com/vserver@list.linux-vserver.org/msg08385.html here]):&lt;br /&gt;
&lt;br /&gt;
  vattribute --set --xid &amp;lt;xid&amp;gt; --flag sched_hard&lt;br /&gt;
&lt;br /&gt;
== Setting the limits ==&lt;br /&gt;
&lt;br /&gt;
Then you should be able to set the limits with a command like this one (more info [http://oldwiki.linux-vserver.org/vsched+explained here]):&lt;br /&gt;
&lt;br /&gt;
  vsched --xid &amp;lt;xid&amp;gt; --fill-rate &amp;lt;fill-rate&amp;gt; --interval &amp;lt;interval&amp;gt; \&lt;br /&gt;
         --fill-rate2 &amp;lt;fill-rate2&amp;gt; --interval2 &amp;lt;interval2&amp;gt; \&lt;br /&gt;
         --tokens-max &amp;lt;tokens-max&amp;gt; --tokens-min &amp;lt;tokens-min&amp;gt; --idle-time --force &lt;br /&gt;
&lt;br /&gt;
it's important to use the option ''--force'' so the limit is applied at the same time in the cpus. If you want to enable fair share (i.e, idle-time) for the vserver, make sure to use the ''--idle-time'' option at the previous command.&lt;br /&gt;
&lt;br /&gt;
Then you should check at ''/proc/virtual/&amp;lt;xid&amp;gt;/sched'' (more info [http://linux-vserver.org/ProcFS#sched here]). Try a command like&lt;br /&gt;
&lt;br /&gt;
  watch -n1 cat /proc/virtual/&amp;lt;xid&amp;gt;/sched&lt;br /&gt;
&lt;br /&gt;
If the collum &amp;quot;Ticks spent on hold&amp;quot; is greater than zero and the flag &amp;quot;On hold (H) or running (R)&amp;quot; assumes the hold value, then its working :)&lt;br /&gt;
 &lt;br /&gt;
If you want to remove the scheduling, use the command&lt;br /&gt;
&lt;br /&gt;
  vattribute --set --xid &amp;lt;xid&amp;gt; --flag ~sched_hard&lt;br /&gt;
&lt;br /&gt;
But remember that these instructions just cover setting limits in a running vserver. To save the values you choose please refer to the [http://www.nongnu.org/util-vserver/doc/conf/configuration.html great flower page].&lt;/div&gt;</summary>
		<author><name>SilvioRhatto</name></author>	</entry>

	<entry>
		<id>http://linux-vserver.at/Documentation</id>
		<title>Documentation</title>
		<link rel="alternate" type="text/html" href="http://linux-vserver.at/Documentation"/>
				<updated>2008-12-27T00:51:07Z</updated>
		
		<summary type="html">&lt;p&gt;SilvioRhatto: Added link &amp;quot;Applying CPU Limits&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;div style=&amp;quot;margin: 2em auto 2em auto; padding: 10px; background-color: #F9ECCD; border: 1px solid #004433; text-align: center;&amp;quot;&amp;gt;&lt;br /&gt;
[[Image:Icon-Caution.png|left]]&lt;br /&gt;
We are currently migrating to MediaWiki from our old system, but not all content has been migrated yet. Take a look at the [[Wiki Team]] page for instructions how to help or look at the [http://oldwiki.linux-vserver.org old wiki] to find the information not migrated yet.&lt;br /&gt;
&lt;br /&gt;
'''To ease migration we created a [[List of old Documentation pages]].'''&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
&lt;br /&gt;
* [[Overview|Virtualization Overview]]&lt;br /&gt;
* [[Usage Scenarios]]&lt;br /&gt;
* [[Feature Matrix]]&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
* [[Installation Considerations]]&lt;br /&gt;
* [[Installation on Linux 2.6]]&lt;br /&gt;
* [[Installation on ArchLinux]]&lt;br /&gt;
* [[Installation on CentOS]]&lt;br /&gt;
* [[Installation on Debian]]&lt;br /&gt;
* [[Installation on Fedora]]&lt;br /&gt;
* [[Installation on Gentoo]]&lt;br /&gt;
* [[Installation on Mandrake]]&lt;br /&gt;
* [http://pld-linux.org/Vserver Installation on PLD-Linux]&lt;br /&gt;
* [[Installation on Redhat]]&lt;br /&gt;
* [[Installation on Slackware]]&lt;br /&gt;
* [[Installation on SuSE/OpenSUSE]]&lt;br /&gt;
* [[Installation on Ubuntu]]&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
* [[util-vserver:Documentation|util-vserver Documentation]]&lt;br /&gt;
* [[vcd:Documentation|VServer Control Daemon Documentation]]&lt;br /&gt;
* [[Share a directory among multiple guests]]&lt;br /&gt;
&lt;br /&gt;
== Guides and Howtos ==&lt;br /&gt;
&lt;br /&gt;
* [[Building Guest Systems]]&lt;br /&gt;
* [[util-vserver:Howto virtualize an exisiting Linux server|Howto virtualize an existing Linux server]]&lt;br /&gt;
* [[VCMD HowTo]]&lt;br /&gt;
* [[Howto make bsd-style init sysv-compatible|Howto make Bsd-style init sysv-compatible (archlinux guest system)]]&lt;br /&gt;
* [[Installing 32-bit Fedora on 64-bit Debian]]&lt;br /&gt;
* [[Installing Ubuntu on Debian]]&lt;br /&gt;
* [[Installing an openSUSE vserver guest]]&lt;br /&gt;
* [[Networking vserver guests]]&lt;br /&gt;
* [[Howto HostAuth]]&lt;br /&gt;
* [[Fuse_GlusterFS| Fuse and GlusterFS]]&lt;br /&gt;
* [[yum-patch|How to patch vyum]]&lt;br /&gt;
* [[yum-upgrade-3.2.4|Upgrading existing installations to yum-3.2.4]]&lt;br /&gt;
* [[Migrating from OpenVZ to Linux-Vserver]]&lt;br /&gt;
* [[Getting_high_with_lenny]]&lt;br /&gt;
* [[Installing_Ubuntu_Hoary_as_guest| Installing Ubuntu Hoary as guest]]&lt;br /&gt;
* [[Applying CPU Limits]]&lt;br /&gt;
&lt;br /&gt;
== Lists &amp;amp;amp; Theory ==&lt;br /&gt;
&lt;br /&gt;
* Basic configuration&lt;br /&gt;
** [[Capabilities and Flags]]&lt;br /&gt;
** [[CPU Scheduler]]&lt;br /&gt;
** [[Disk Limits and Quota]]&lt;br /&gt;
** [[Resource Limits]]&lt;br /&gt;
*** [[Memory Limits]]&lt;br /&gt;
** [[Virtual System Information]]&lt;br /&gt;
** [[Unification]]&lt;br /&gt;
&lt;br /&gt;
* Security Considerations&lt;br /&gt;
** [[Secure Capabilities]]&lt;br /&gt;
** [[Secure chroot Barrier]]&lt;br /&gt;
** [[Secure Device Nodes]]&lt;br /&gt;
** [[Secure ProcFS Entries]]&lt;br /&gt;
&lt;br /&gt;
* Performance and Stability&lt;br /&gt;
** [[Virtualization Overhead]]&lt;br /&gt;
&lt;br /&gt;
* Implementation Details&lt;br /&gt;
** [[Context Accounting]]&lt;br /&gt;
** [[Filesystem Attributes]]&lt;br /&gt;
** [[Filesystem Tagging]]&lt;br /&gt;
** [[Filesystem Namespaces]]&lt;br /&gt;
** [[Kernel Userspace Helper]]&lt;br /&gt;
** [[Mainline Kernel Virtualization]]&lt;br /&gt;
** [[ProcFS]]&lt;br /&gt;
** [[Syscall Command Switch]]&lt;br /&gt;
&lt;br /&gt;
== External Resources ==&lt;/div&gt;</summary>
		<author><name>SilvioRhatto</name></author>	</entry>

	</feed>