<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/index.php?action=history&amp;feed=atom&amp;title=Fair-share_scheduling</id>
	<title>Fair-share scheduling - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/index.php?action=history&amp;feed=atom&amp;title=Fair-share_scheduling"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;action=history"/>
	<updated>2026-05-14T19:01:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=22898&amp;oldid=prev</id>
		<title>14.139.228.222: CPU should be written in capital</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=22898&amp;oldid=prev"/>
		<updated>2018-03-12T17:57:24Z</updated>

		<summary type="html">&lt;p&gt;CPU should be written in capital&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:57, 12 March 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l5&quot; &gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For example if group A had 8 processes running and group B had 4, then each group would get half the time, meaning that each process in the A group would only get 6.25% of the time (8*6.5 = 50) and each process in group B would get 12.5% of the time.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For example if group A had 8 processes running and group B had 4, then each group would get half the time, meaning that each process in the A group would only get 6.25% of the time (8*6.5 = 50) and each process in group B would get 12.5% of the time.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are a number of different implementations of the fair-share scheduler other than the ones described here.&amp;#160; I know of one that actually kept track of the accumulated time over a time period for a user/group and would use that information in it's calculations.&amp;#160; The theory was that if you'd been a &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;cpu &lt;/del&gt;hog in the past, you might not get as much time right now.&amp;#160; This calculation also was also time weighted such that your share of time in the last second was much more important than a second a few minutes ago.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;There are a number of different implementations of the fair-share scheduler other than the ones described here.&amp;#160; I know of one that actually kept track of the accumulated time over a time period for a user/group and would use that information in it's calculations.&amp;#160; The theory was that if you'd been a &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;CPU &lt;/ins&gt;hog in the past, you might not get as much time right now.&amp;#160; This calculation also was also time weighted such that your share of time in the last second was much more important than a second a few minutes ago.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key openvzwikidb:diff::1.12:old-8600:rev-22898 --&gt;
&lt;/table&gt;</summary>
		<author><name>14.139.228.222</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=8600&amp;oldid=prev</id>
		<title>Robferrer: spelling (example)</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=8600&amp;oldid=prev"/>
		<updated>2010-05-07T15:35:14Z</updated>

		<summary type="html">&lt;p&gt;spelling (example)&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 15:35, 7 May 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to multiple processes in a defined way.&amp;#160; When multiple processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.&amp;#160; An &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;exmaple &lt;/del&gt;is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.&amp;#160; This is not to say that each process will get 1/4 of a second all at one time.&amp;#160; Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.&amp;#160; So in this completely made up case, Each process will get 5 time slices every second.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to multiple processes in a defined way.&amp;#160; When multiple processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.&amp;#160; An &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;example &lt;/ins&gt;is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.&amp;#160; This is not to say that each process will get 1/4 of a second all at one time.&amp;#160; Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.&amp;#160; So in this completely made up case, Each process will get 5 time slices every second.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.&amp;#160; &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.&amp;#160; The fair-share scheduler was born.&amp;#160; There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.&amp;#160; This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.&amp;#160; &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.&amp;#160; The fair-share scheduler was born.&amp;#160; There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.&amp;#160; This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Robferrer</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=7921&amp;oldid=prev</id>
		<title>91.41.51.108 at 10:56, 14 November 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=7921&amp;oldid=prev"/>
		<updated>2009-11-14T10:56:16Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:56, 14 November 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to multiple processes in a defined way.&amp;#160; When &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;mulitple &lt;/del&gt;processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.&amp;#160; An exmaple is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.&amp;#160; This is not to say that each process will get 1/4 of a second all at one time.&amp;#160; Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.&amp;#160; So in this completely made up case, Each process will get 5 time slices every second.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to multiple processes in a defined way.&amp;#160; When &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;multiple &lt;/ins&gt;processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.&amp;#160; An exmaple is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.&amp;#160; This is not to say that each process will get 1/4 of a second all at one time.&amp;#160; Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.&amp;#160; So in this completely made up case, Each process will get 5 time slices every second.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.&amp;#160; &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.&amp;#160; The fair-share scheduler was born.&amp;#160; There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.&amp;#160; This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.&amp;#160; &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.&amp;#160; The fair-share scheduler was born.&amp;#160; There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.&amp;#160; This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key openvzwikidb:diff::1.12:old-7920:rev-7921 --&gt;
&lt;/table&gt;</summary>
		<author><name>91.41.51.108</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=7920&amp;oldid=prev</id>
		<title>91.41.51.108 at 10:56, 14 November 2009</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=7920&amp;oldid=prev"/>
		<updated>2009-11-14T10:56:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 10:56, 14 November 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot; &gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;muliple processors &lt;/del&gt;in a defined way.&amp;#160; When mulitple processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.&amp;#160; An exmaple is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.&amp;#160; This is not to say that each process will get 1/4 of a second all at one time.&amp;#160; Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.&amp;#160; So in this completely made up case, Each process will get 5 time slices every second.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;multiple processes &lt;/ins&gt;in a defined way.&amp;#160; When mulitple processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.&amp;#160; An exmaple is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.&amp;#160; This is not to say that each process will get 1/4 of a second all at one time.&amp;#160; Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.&amp;#160; So in this completely made up case, Each process will get 5 time slices every second.&amp;#160; &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.&amp;#160; &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.&amp;#160; The fair-share scheduler was born.&amp;#160; There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.&amp;#160; This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.&amp;#160; &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.&amp;#160; The fair-share scheduler was born.&amp;#160; There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.&amp;#160; This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key openvzwikidb:diff::1.12:old-6416:rev-7920 --&gt;
&lt;/table&gt;</summary>
		<author><name>91.41.51.108</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=6416&amp;oldid=prev</id>
		<title>Fayette: New page: Fair-share scheduling is a method of allotting CPU time to muliple processors in a defined way.  When mulitple processes need a CPU, operating systems frequently allot CPU time slices on a...</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Fair-share_scheduling&amp;diff=6416&amp;oldid=prev"/>
		<updated>2008-09-05T13:36:41Z</updated>

		<summary type="html">&lt;p&gt;New page: Fair-share scheduling is a method of allotting CPU time to muliple processors in a defined way.  When mulitple processes need a CPU, operating systems frequently allot CPU time slices on a...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Fair-share scheduling is a method of allotting CPU time to muliple processors in a defined way.  When mulitple processes need a CPU, operating systems frequently allot CPU time slices on a round robin, equal time basis for processes with the same priority.  An exmaple is that if there are 4 processes wanting the CPU then each process will get 1/4 of a second every second.  This is not to say that each process will get 1/4 of a second all at one time.  Most operating systems define a time slice, something like 50 msec (arbitrary number that doesn't necessarily represent any OS) and will give each process a time slice.  So in this completely made up case, Each process will get 5 time slices every second.  &lt;br /&gt;
&lt;br /&gt;
Long ago someone said that we need a way of giving people with legitimate requirements more of the time than less needy people.  &amp;quot;Need&amp;quot; often reflects what level of service the user wants to pay for.  The fair-share scheduler was born.  There have been a number of implementations over the years, but on of the most common was to simply assign weights to users such that one user may get twice as many time slices in a given time period as others.  This has been expanded often to groups so that processes belonging to a group of users would be given the same number of time slices as another group.&lt;br /&gt;
&lt;br /&gt;
For example if group A had 8 processes running and group B had 4, then each group would get half the time, meaning that each process in the A group would only get 6.25% of the time (8*6.5 = 50) and each process in group B would get 12.5% of the time.&lt;br /&gt;
&lt;br /&gt;
There are a number of different implementations of the fair-share scheduler other than the ones described here.  I know of one that actually kept track of the accumulated time over a time period for a user/group and would use that information in it's calculations.  The theory was that if you'd been a cpu hog in the past, you might not get as much time right now.  This calculation also was also time weighted such that your share of time in the last second was much more important than a second a few minutes ago.&lt;/div&gt;</summary>
		<author><name>Fayette</name></author>
		
	</entry>
</feed>