Operating Systems – Week 4 Assignment
The Rule Scheduler
You accomplish deficiency to fix and localize work decomposition tools and rule scheduling tools to full this assignment.
Your band-arms this week is to stir and use the rule scheduler in force on your LINUX scheme. You accomplish use Linux orders to substitute scheduling policies and rule priorities spell analyzing the property and resulting work.
Useful orders for this assignment:
And as frequently “man” is your best friend
Answer the Following:
What is an discontinue? What specifically on your scheme causes discontinues?
What is a tenor switch?
Start your Linux Partition from a ruddy boot and notorious the Terminal. Do not notorious any other applications at this spell. Determine appreciates for each of the forthcoming. Prepare screenshots of order output.
For a 30 promote spell interval:
About how numerous discontinues per promote?
About how numerous tenor switches per promote?
At a considerable resemblingize, what events are likely causing the prevalent appreciates for discontinues and tenor switches?
IMPORTANT: Antecedently performing the tasks underneath, you accomplish omission to notorious at last one final window and perchance 2. You should be waiting the work statistics WHILE these applications are notoriousing! This accomplish resign the most costly results in this warning. i.e. Use vmstat to wait CPU statistics in veritable spell as the scheme becomes industrious. Remain waiting appreciates uninterruptedly the applications shape notoriousing.
Open as numerous applications as you can spell stationary maintaining a Linux scheme that functions (the slower the scheme the improve).
Now quote the steps from overhead and archives new appreciates.
Summarize answer for discontinues and tenor switches for each:
· Antecedently notoriousing applications
· Spell notoriousing applications
· Shortly Subjoined all applications keep notorioused
Find three rulees in divergent “states.” List the rule indicate, its prevalent declare, and what this instrument.
Find 3 rulees using divergent priorities / equitable appreciates. List the rule indicate, the control and equitable appreciates, and what these appreciates medium?
What is the scheduling prudence of the three rulees using the most CPU prevalently? (It is OK if they are all the similar).
Change the control of any rule using the chrt order. Archives antecedently and subjoined appreciates. Note any powerful property on work if any.
Change the equitable appreciate of any rule. Archives antecedently and subjoined appreciates. Note any powerful property on work if any.
You accomplish omission to use multiple final windows for this bisect. i.e. Use one to wait “top” appreciates and another to invade orders.
Switch to the “root” user as you accomplish equitable considerable privelges:
sudo su - root
then invade the passtidings for the representation you setup for yourself.
Use the forthcoming order to feign scheme load:
dd if=/dev/zero of=/dev/null &
run the order at last twice so that there are 2 “dd” rulees exoteric. You can enbulky as numerous of them as you omission at one spell. You should heed these rulees are using resembling amounts of CPU at pristine.
Pick one of these rulees to bring-about adjustments to.
Change the control using the chrt order to different considerable and low priorities. Note property on CPU exercitation and confutation spell in your order shell if any.
Change the rule scheduling algorithm using the “chrt” order. List prevalent scheduling algorithm for the rule and new scheduling algorithm. Note property on CPU exercitation and confutation spell if any. Use all practicable scheduling policies at last uninterruptedly. NOTE: “chrt –m” lists practicable control appreciates.
NOTE: To despatch a rule: “despatch pid”
i.e. if the rule id is 4149
You may deficiency to despatch a rule if the scheme becomes unresponsive. You may so deficiency to restart the bisectition!!!
You accomplish resign a Tidings or Libre Writer Instrument which contains results from the overhead decomposition and confutations. I do not keep appropinquation to your scheme so you deficiency to be fast to prepare screenshots for anything I cannot perhaps comprehend. i.e. results from order output and top output.
Please implant your screenshots into your tidings instrument after a while sustaining instrumentation which meets all equitablements. You accomplish be penalized for any results which are not backed by demonstration.
A bulky interest of this collocate is exploring and eliminationing solutions on your own!
You accomplish remain to produce as a schemes manager / analyst and thus you accomplish be expected to condition out what you deficiency to comprehend on your own. You accomplish not perceive equitable solutions in your dimensions which present you what you deficiency to comprehend to full this assignment or advenient assignments.
What you accomplish perceive in your dimensions is an in profundity decomposition of how an generous schemes manages fame at a low resemblingize. This is dictatorial in intelligence what the resulting facts appreciates medium from your elimination.