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 | |
parent | afda558251a2c4851771e7f936e1c74251f09ed5 (diff) |
2008-06-23 Neal H. Walfield <neal@gnu.org>
* cap.h (OBJECT_PRIORITY_DEFAULT): Define.
-rw-r--r-- | hurd/ChangeLog | 4 | ||||
-rw-r--r-- | hurd/cap.h | 1 | ||||
-rw-r--r-- | viengoos/ChangeLog | 8 | ||||
-rw-r--r-- | viengoos/activity.c | 9 |
4 files changed, 18 insertions, 4 deletions
diff --git a/hurd/ChangeLog b/hurd/ChangeLog index d0c4257..737dfa2 100644 --- a/hurd/ChangeLog +++ b/hurd/ChangeLog @@ -1,3 +1,7 @@ +2008-06-23 Neal H. Walfield <neal@gnu.org> + + * cap.h (OBJECT_PRIORITY_DEFAULT): Define. + 2008-06-22 Neal H. Walfield <neal@gnu.org> * exceptions.h (EXCEPTION_INFO_PRINTF): Clean up output. @@ -175,6 +175,7 @@ cap_type_strengthen (enum cap_type type) #define OBJECT_PRIORITY_BITS 10 #define OBJECT_PRIORITY_MIN (-(1 << (OBJECT_PRIORITY_BITS - 1))) #define OBJECT_PRIORITY_LRU (0) +#define OBJECT_PRIORITY_DEFAULT (0) #define OBJECT_PRIORITY_MAX ((1 << (OBJECT_PRIORITY_BITS - 1)) - 1) struct object_policy diff --git a/viengoos/ChangeLog b/viengoos/ChangeLog index 2eac232..0c5ed3e 100644 --- a/viengoos/ChangeLog +++ b/viengoos/ChangeLog @@ -1,6 +1,12 @@ 2008-06-23 Neal H. Walfield <neal@gnu.org> - * profile.c (profile_end): Only deump profile statistics every + * activity.h (LIST_CLASS_TYPE): Add field priorities_count. + * activity.c (activity_destroy) [! NDEBUG]: Update + VICTIM->PARENT->PRIORITIES_COUNT. + +2008-06-23 Neal H. Walfield <neal@gnu.org> + + * profile.c (profile_end): Only dump profile statistics every 100000 samples if the debug output level is or exceeds 5. (profile_stats_dump): When printing the per-call time, also print the first digit after the period. 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, |