Lines Matching defs:lcol
155 lcollection_t *lcol;
179 if ((lcol = lcollection_find(&colid)) == NULL)
186 lproc = lcol->lcol_lprocess;
210 lproc->lpc_collection = lcol;
226 if (lcollection_member(lcol, lproc)) {
227 lprocess_t *cur = lcol->lcol_lprocess;
230 (long long)lcol->lcol_id.rcid_val,
240 lproc->lpc_next = lcol->lcol_lprocess;
244 lcol->lcol_lprocess = lproc;
251 lcol->lcol_stat.lcols_proc_in++;
256 list_walk_process_cb(lcollection_t *lcol, void *arg)
263 member = lcol->lcol_lprocess;
269 if (cb(lcol, member) != 0) {
499 update_col_rss(lcollection_t *lcol)
503 lcol->lcol_rss = 0;
504 lcol->lcol_image_size = 0;
507 if (vmu_vals[i].vmu_id != lcol->lcol_id.rcid_val)
511 lcol->lcol_id.rcid_type != RCIDT_ZONE)
515 lcol->lcol_id.rcid_type != RCIDT_PROJECT)
519 lcol->lcol_rss = vmu_vals[i].vmu_rss_all / 1024;
520 lcol->lcol_image_size = vmu_vals[i].vmu_swap_all / 1024;
531 rss_sample_col_cb(lcollection_t *lcol, void *arg)
537 update_col_rss(lcol);
539 lcol->lcol_stat.lcols_rss_sample++;
540 rss = lcol->lcol_rss;
541 excess = rss - lcol->lcol_rss_cap;
543 lcol->lcol_stat.lcols_rss_act_sum += rss;
545 if (lcol->lcol_id.rcid_type == RCIDT_PROJECT)
548 lcol->lcol_stat.lcols_rss_sum += rss;
550 if (lcol->lcol_stat.lcols_min_rss > rss)
551 lcol->lcol_stat.lcols_min_rss = rss;
552 if (lcol->lcol_stat.lcols_max_rss < rss)
553 lcol->lcol_stat.lcols_max_rss = rss;
562 col_type_cb(lcollection_t *lcol, void *arg)
567 if (lcol->lcol_rss_cap == 0)
570 if (lcol->lcol_id.rcid_type == RCIDT_PROJECT)
615 sweep_process_cb(lcollection_t *lcol, lprocess_t *lpc)
633 excess_print_cb(lcollection_t *lcol, void *arg)
635 int64_t excess = lcol->lcol_rss - lcol->lcol_rss_cap;
638 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? "project" : "zone"),
639 lcol->lcol_name,
640 (unsigned long long)lcol->lcol_rss,
641 (unsigned long long)lcol->lcol_rss_cap,
656 scan_cb(lcollection_t *lcol, void *arg)
661 if (lcol->lcol_id.rcid_type == RCIDT_ZONE &&
662 lcol->lcol_id.rcid_val == GLOBAL_ZONEID) {
663 gz_col = lcol;
667 if ((excess = lcol->lcol_rss - lcol->lcol_rss_cap) > 0) {
668 scan(lcol, excess);
669 lcol->lcol_stat.lcols_scan++;
680 scan_gz(lcollection_t *lcol, boolean_t project_over_cap)
692 excess = lcol->lcol_rss - lcol->lcol_rss_cap;
695 update_col_rss(lcol);
696 excess = lcol->lcol_rss - lcol->lcol_rss_cap;
701 scan(lcol, excess);
702 lcol->lcol_stat.lcols_scan++;
714 soft_scan_cb(lcollection_t *lcol, void *a)
720 if (lcol->lcol_id.rcid_type == RCIDT_ZONE &&
721 lcol->lcol_id.rcid_val == GLOBAL_ZONEID) {
722 gz_col = lcol;
726 if ((excess = lcol->lcol_rss - lcol->lcol_rss_cap) > 0) {
732 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ?
734 (long)lcol->lcol_id.rcid_val,
739 scan(lcol, adjusted_excess);
740 lcol->lcol_stat.lcols_scan++;
747 soft_scan_gz(lcollection_t *lcol, void *a)
760 excess = lcol->lcol_rss - lcol->lcol_rss_cap;
763 update_col_rss(lcol);
764 excess = lcol->lcol_rss - lcol->lcol_rss_cap;
773 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ?
775 (long)lcol->lcol_id.rcid_val,
780 scan(lcol, adjusted_excess);
781 lcol->lcol_stat.lcols_scan++;
791 unenforced_cap_cb(lcollection_t *lcol, void *arg)
793 lcol->lcol_stat.lcols_unenforced_cap++;
867 collection_clear_cb(lcollection_t *lcol, void *arg)
869 lcol->lcol_mark = 0;
908 collection_sweep_cb(lcollection_t *lcol, void *arg)
910 if (lcol->lcol_mark == 0) {
912 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ?
913 "project" : "zone"), lcol->lcol_name);
914 lcollection_free(lcol);
1028 simple_report_collection_cb(lcollection_t *lcol, void *arg)
1032 (lcol->lcol_stat.field - lcol->lcol_stat_old.field))
1038 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ? "project" : "zone"),
1039 lcol->lcol_name,
1043 (unsigned long long)lcol->lcol_stat.lcols_min_rss,
1044 (unsigned long long)lcol->lcol_stat.lcols_max_rss,
1045 (unsigned long long)lcol->lcol_rss_cap,
1046 (unsigned long long)(lcol->lcol_stat.lcols_proc_in -
1047 lcol->lcol_stat.lcols_proc_out), DELTA(lcols_proc_out),
1060 report_collection_cb(lcollection_t *lcol, void *arg)
1069 dc.lcol_id = lcol->lcol_id;
1070 (void) strcpy(dc.lcol_name, lcol->lcol_name);
1071 dc.lcol_rss = lcol->lcol_rss;
1072 dc.lcol_image_size = lcol->lcol_image_size;
1073 dc.lcol_rss_cap = lcol->lcol_rss_cap;
1074 dc.lcol_stat = lcol->lcol_stat;
1077 lcol->lcol_stat_old = lcol->lcol_stat;
1080 (lcol->lcol_id.rcid_type == RCIDT_PROJECT ?
1082 lcol->lcol_name);
1255 sum_excess_cb(lcollection_t *lcol, void *arg)
1259 *sum_excess += MAX((int64_t)0, (int64_t)(lcol->lcol_rss -
1260 lcol->lcol_rss_cap));