Lines Matching refs:stats
459 my %stats = %$hashref;
477 foreach $process_pid (keys %stats) {
479 if (!$stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[0] &&
480 !$stats{$process_pid}->{HIGH_KSWAPD_LATENCY}[0]) {
486 while (defined $stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$index] ||
487 defined $stats{$process_pid}->{HIGH_KSWAPD_LATENCY}[$index]) {
489 if ($stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$index]) {
490 printf("%s ", $stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$index]) if !$opt_ignorepid;
491 my ($dummy, $latency) = split(/-/, $stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$index]);
494 printf("%s ", $stats{$process_pid}->{HIGH_KSWAPD_LATENCY}[$index]) if !$opt_ignorepid;
495 my ($dummy, $latency) = split(/-/, $stats{$process_pid}->{HIGH_KSWAPD_LATENCY}[$index]);
507 foreach $process_pid (keys %stats) {
509 if (!$stats{$process_pid}->{MM_VMSCAN_DIRECT_RECLAIM_BEGIN}) {
513 $total_direct_reclaim += $stats{$process_pid}->{MM_VMSCAN_DIRECT_RECLAIM_BEGIN};
514 $total_wakeup_kswapd += $stats{$process_pid}->{MM_VMSCAN_WAKEUP_KSWAPD};
515 $total_direct_nr_scanned += $stats{$process_pid}->{HIGH_NR_SCANNED};
516 $total_direct_nr_file_scanned += $stats{$process_pid}->{HIGH_NR_FILE_SCANNED};
517 $total_direct_nr_anon_scanned += $stats{$process_pid}->{HIGH_NR_ANON_SCANNED};
518 $total_direct_nr_reclaimed += $stats{$process_pid}->{HIGH_NR_RECLAIMED};
519 $total_direct_nr_file_reclaimed += $stats{$process_pid}->{HIGH_NR_FILE_RECLAIMED};
520 $total_direct_nr_anon_reclaimed += $stats{$process_pid}->{HIGH_NR_ANON_RECLAIMED};
521 $total_direct_writepage_file_sync += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_SYNC};
522 $total_direct_writepage_anon_sync += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_ANON_SYNC};
523 $total_direct_writepage_file_async += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_ASYNC};
525 $total_direct_writepage_anon_async += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_ANON_ASYNC};
529 while (defined $stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$index]) {
530 my ($dummy, $latency) = split(/-/, $stats{$process_pid}->{HIGH_DIRECT_RECLAIM_LATENCY}[$index]);
537 $stats{$process_pid}->{MM_VMSCAN_DIRECT_RECLAIM_BEGIN},
538 $stats{$process_pid}->{MM_VMSCAN_WAKEUP_KSWAPD},
539 $stats{$process_pid}->{HIGH_NR_SCANNED},
540 $stats{$process_pid}->{HIGH_NR_FILE_SCANNED},
541 $stats{$process_pid}->{HIGH_NR_ANON_SCANNED},
542 $stats{$process_pid}->{HIGH_NR_RECLAIMED},
543 $stats{$process_pid}->{HIGH_NR_FILE_RECLAIMED},
544 $stats{$process_pid}->{HIGH_NR_ANON_RECLAIMED},
545 …$stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_SYNC} + $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE…
546 …$stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_ASYNC} + $stats{$process_pid}->{MM_VMSCAN_WRITEPAG…
549 if ($stats{$process_pid}->{MM_VMSCAN_DIRECT_RECLAIM_BEGIN}) {
552 my $count = $stats{$process_pid}->{MM_VMSCAN_DIRECT_RECLAIM_BEGIN_PERORDER}[$order];
558 if ($stats{$process_pid}->{MM_VMSCAN_WAKEUP_KSWAPD}) {
561 my $count = $stats{$process_pid}->{MM_VMSCAN_WAKEUP_KSWAPD_PERORDER}[$order];
575 foreach $process_pid (keys %stats) {
577 if (!$stats{$process_pid}->{MM_VMSCAN_KSWAPD_WAKE}) {
581 $total_kswapd_wake += $stats{$process_pid}->{MM_VMSCAN_KSWAPD_WAKE};
582 $total_kswapd_nr_scanned += $stats{$process_pid}->{HIGH_NR_SCANNED};
583 $total_kswapd_nr_file_scanned += $stats{$process_pid}->{HIGH_NR_FILE_SCANNED};
584 $total_kswapd_nr_anon_scanned += $stats{$process_pid}->{HIGH_NR_ANON_SCANNED};
585 $total_kswapd_nr_reclaimed += $stats{$process_pid}->{HIGH_NR_RECLAIMED};
586 $total_kswapd_nr_file_reclaimed += $stats{$process_pid}->{HIGH_NR_FILE_RECLAIMED};
587 $total_kswapd_nr_anon_reclaimed += $stats{$process_pid}->{HIGH_NR_ANON_RECLAIMED};
588 $total_kswapd_writepage_file_sync += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_SYNC};
589 $total_kswapd_writepage_anon_sync += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_ANON_SYNC};
590 $total_kswapd_writepage_file_async += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_ASYNC};
591 $total_kswapd_writepage_anon_async += $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_ANON_ASYNC};
595 $stats{$process_pid}->{MM_VMSCAN_KSWAPD_WAKE},
596 $stats{$process_pid}->{HIGH_KSWAPD_REWAKEUP},
597 $stats{$process_pid}->{HIGH_NR_SCANNED},
598 $stats{$process_pid}->{HIGH_NR_FILE_SCANNED},
599 $stats{$process_pid}->{HIGH_NR_ANON_SCANNED},
600 $stats{$process_pid}->{HIGH_NR_RECLAIMED},
601 $stats{$process_pid}->{HIGH_NR_FILE_RECLAIMED},
602 $stats{$process_pid}->{HIGH_NR_ANON_RECLAIMED},
603 …$stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_SYNC} + $stats{$process_pid}->{MM_VMSCAN_WRITEPAGE…
604 …$stats{$process_pid}->{MM_VMSCAN_WRITEPAGE_FILE_ASYNC} + $stats{$process_pid}->{MM_VMSCAN_WRITEPAG…
606 if ($stats{$process_pid}->{MM_VMSCAN_KSWAPD_WAKE}) {
609 my $count = $stats{$process_pid}->{MM_VMSCAN_KSWAPD_WAKE_PERORDER}[$order];
615 if ($stats{$process_pid}->{HIGH_KSWAPD_REWAKEUP}) {
618 my $count = $stats{$process_pid}->{HIGH_KSWAPD_REWAKEUP_PERORDER}[$order];