Lines Matching refs:sid
34 def window_check_count(history, sid, key): argument
37 s = window.get(sid)
42 def window_check_sum(history, sid, key): argument
45 s = window.get(sid)
75 for sid, slab in diffs.items():
77 w[sid] = {}
83 w[sid]['dirty'] = 1
85 w[sid]['dirty'] = 1
86 w[sid]['ev'] = slab['evicted_d'] / totals['evicted_d']
87 w[sid]['age'] = slab['age']
88 age = window_check_sum(history, sid, 'age') / len(history['w'])
93 if window_check_sum(history, sid, 'dirty') == 0:
94 decision = (sid, 0)
99 oldest = (sid, age)
102 ev_total = window_check_count(history, sid, 'ev')
103 ev_total_sum = window_check_sum(history, sid, 'ev') / args.window
106 …print("sid {} age {} ev_total {} window_min {} ev_total_sum {}".format(sid, age, ev_total, window_…
109 youngest = (sid, age)
197 for sid, slab in diffs.items():
201 int(sid), slab['evicted_d'], pct(slab['evicted_d'], totals['evicted_d']),