diff options
author | neal <neal> | 2008-06-23 18:10:06 +0000 |
---|---|---|
committer | neal <neal> | 2008-06-23 18:10:06 +0000 |
commit | 6a2fb272af6cafd5fa19f3c28eb1fb7cc22c2ce6 (patch) | |
tree | f01c71cabd939d6ce1e116515285a3bdb295fef1 /viengoos/activity.c | |
parent | afda558251a2c4851771e7f936e1c74251f09ed5 (diff) |
2008-06-23 Neal H. Walfield <neal@gnu.org>
* cap.h (OBJECT_PRIORITY_DEFAULT): Define.
Diffstat (limited to 'viengoos/activity.c')
-rw-r--r-- | viengoos/activity.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/viengoos/activity.c b/viengoos/activity.c index 9cad063..0569cb3 100644 --- a/viengoos/activity.c +++ b/viengoos/activity.c @@ -160,6 +160,7 @@ activity_destroy (struct activity *activity, struct activity *victim) void *ret = hurd_btree_priorities_insert (&victim->parent->priorities, desc); assert (! ret); + victim->parent->priorities_count ++; count ++; } @@ -391,12 +392,14 @@ do_activity_dump (struct activity *activity, int indent) int active = activity_lru_list_count (&activity->active); int inactive = activity_lru_list_count (&activity->inactive); + int clean = eviction_list_count (&activity->eviction_clean); + int dirty = eviction_list_count (&activity->eviction_dirty); - printf ("%s %llx: %d frames (active: %d, inactive: %d) " - "(total: %d); %d/%d; %d/%d\n", + printf ("%s %llx: %d frames (active: %d, inactive: %d, " + "pending eviction: %d/%d); total: %d; s:%d/%d; c:%d/%d\n", indent_string, object_to_object_desc ((struct object *) activity)->oid, - activity->frames_local, active, inactive, + activity->frames_local, active, inactive, clean, dirty, activity->frames_total, activity->policy.sibling_rel.priority, activity->policy.sibling_rel.weight, |