Lines Matching defs:interval
213 { 60, 8, 0, 0, { 0, 0 }, FALSE }, /* 1 hour intermediate interval, 8x burst */
214 { 24 * 60, 1, 0, 0, { 0, 0 }, FALSE }, /* 24 hour long interval, no burst */
1558 memorystatus_freeze_update_throttle_interval(mach_timespec_t *ts, struct throttle_interval_t *interval)
1560 if (CMP_MACH_TIMESPEC(ts, &interval->ts) >= 0) {
1561 if (!interval->max_pageouts) {
1562 interval->max_pageouts = (interval->burst_multiple * (((uint64_t)interval->mins * FREEZE_DAILY_PAGEOUTS_MAX) / (24 * 60)));
1564 printf("memorystatus_freeze_update_throttle_interval: %d minute throttle timeout, resetting\n", interval->mins);
1566 interval->ts.tv_sec = interval->mins * 60;
1567 interval->ts.tv_nsec = 0;
1568 ADD_MACH_TIMESPEC(&interval->ts, ts);
1570 if (interval->pageouts > interval->max_pageouts) {
1571 interval->pageouts -= interval->max_pageouts;
1573 interval->pageouts = 0;
1575 interval->throttle = FALSE;
1576 } else if (!interval->throttle && interval->pageouts >= interval->max_pageouts) {
1577 printf("memorystatus_freeze_update_throttle_interval: %d minute pageout limit exceeded; enabling throttle\n", interval->mins);
1578 interval->throttle = TRUE;
1582 interval->pageouts, interval->max_pageouts, interval->mins, (interval->ts.tv_sec - ts->tv_sec) / 60,
1583 interval->throttle ? "on" : "off");