DragonFly BSD
DragonFly submit List (threaded) for 2010-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[issue1771] Restore hysteresis to vm_zeroidle


From: "Venkatesh Srinivas \(via DragonFly issue tracker\)" <sinknull@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 25 May 2010 01:32:34 +0000

Venkatesh Srinivas <me@acm.jhu.edu> added the comment:

As written I think the patch behaves like this:

if (zero_state == 0) /* We've not hit the upper limit */
   if (zeroed pages >= high count) /* hit the upper limit */
      zero_state = 1;
      return STOP_ZEROING_PAGES;
   return KEEP_ZEROING_PAGES;

if (zero_state == 1) /* We've hit the upper limit before */
   if (zeroed_pages >= LOW MARK) /* Still have free pages; also covers high */
      return STOP_ZEROING_PAGES;
   /* We've seen an upper limit; now we're below the lower limit. */
   /* Restore to 0 (not seen high limit) */
   zero_state = 0;
   return KEEP_ZEROING_PAGES;


What was wrong with this?

-- vs

_____________________________________________________
DragonFly issue tracker <bugs@lists.dragonflybsd.org>
<http://bugs.dragonflybsd.org/issue1771>
_____________________________________________________




[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]