home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / aix / 12482 < prev    next >
Encoding:
Text File  |  1992-12-11  |  3.6 KB  |  71 lines

  1. Newsgroups: comp.unix.aix
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!geraldo.cc.utexas.edu!portal.austin.ibm.com!awdprime.austin.ibm.com!chukran.austin.ibm.com!rudy
  3. From: rudy@chukran.austin.ibm.com ()
  4. Subject: Re: AIX 3.2.3 on RS/6000-560 - strange scheduler behavior
  5. Sender: news@austin.ibm.com (News id)
  6. Message-ID: <Bz3v18.12Eu@austin.ibm.com>
  7. Date: Fri, 11 Dec 1992 17:24:44 GMT
  8. Reply-To: chukran@austin.vnet.ibm.com(Rudy Chukran)
  9. References:  <10325@vtserf.cc.vt.edu>
  10. Organization: IBM Advanced Workstation Division
  11. Lines: 58
  12.  
  13. In article <10325@vtserf.cc.vt.edu>, valdis@black-ice.cc.vt.edu (Valdis Kletnieks) writes:
  14. |> b) I have a "gut feeling" that part of the problem is that under heavy
  15. |> load (load average over 20 or so), the scheduling algorithm breaks down
  16. |> and chooses "inappropriate" processes to schedule next.  Does anybody know
  17. |> of a way to make the system "prefer" interactive processes under high load?
  18. |> I looked at the 'schedtune' stuff but that isn't what is needed - I think
  19. |> a knob to turn to bias proc.p_pri more for interactive I/O - hitting return
  20. |> should make it get scheduled sooner...
  21. |> 
  22. |> Anybody have any other undocumented hints/tricks/traps for tuning for
  23. |> a multi-user environment, besides what's in SC23-2365 (Performance Monitoring
  24. |> and Tuning)?  A good technical overview of the scheduler algorithms would
  25. |> also be helpful...
  26. First of all, do you have the most latest of SC23-2365-01 which is
  27. now entitled "AIX 3.2 for Risc System/6000 Performance and Monitoring
  28. Tuning Guide"?  Starting on page 2-2 is a description of the Virtual
  29. Memory management page replacement scheme and accompanying load control
  30. scheme.
  31.  
  32. Second of all, you are choosing to operate in a very "nonlinear" region
  33. of system load known as "over committed memory".  AIX 3.1 had no
  34. memory overcommitment accomodation.  AIX 3.2 has such a scheme.
  35. The scheme is based on 2 key points:
  36.     a) detection of overcommitment
  37.     b)  choosing which process(es) to suspend
  38.  
  39. I wont describe the algorithm here. The book goes into 4 pages of
  40. detail.  The schedtune program controls only part a.  The
  41. administrator has no control over b.  The process selection is based
  42. on the premise that to get the "load in control" , the system must
  43. get rid of the culprits causing the load. The virtual memory manager
  44. chooses the processes that exceed the crucial threshold of
  45. repage to page fault ratio. Those that do are suspended. There is
  46. no awareness of "interactivity".  The priorities are not changed either.
  47. Suspension takes the process off the run queue. The scheduler only
  48. schedules processes on the run queue.
  49. Thus, a suspension overrides the priority scheduling determination.
  50.  
  51. Your only option is to play with schedtune.  If you try to raise the
  52. priority of "favored processes", what will likely happen is that they
  53. will get suspended sooner.
  54.  
  55. Try turning off loadcontrol with "schedtune -h0" and see if there is
  56. an improvement. If there isnt, put it back with "schedtune -D"
  57. and vary -p which controls the repage ratio threshold.
  58.  
  59. If that doesnt work, then turn off loadcontrol again, and start messing
  60. with priorities.  Try kicking up the priorites of the favored processes
  61. with either nice or setpri. You will have to be root to increase
  62. priorities in this manner.
  63. -- 
  64. *********************************************************************
  65. Rudy Chukran                |       EMAIL:            
  66. IBM AIX Technical Consulting| RSCS: CHUKRAN at AUSTIN 
  67. 11400 Burnet Rd.            | AWDnet:rudy@chukran.austin.ibm.com    
  68. Internal ZIP 2830           | internet: chukran@austin.vnet.ibm.com
  69. Austin, Texas 78758         |
  70. *********************************************************************
  71.