bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Comments about resident_size and virtual_size


From: James A Morrison
Subject: Comments about resident_size and virtual_size
Date: Sun, 26 May 2002 16:07:18 -0400 (EDT)

 Hi,
  It seems CMU expected task_basic_info.resident_size and 
task_basic_info.virtual_size to return the number of pages used, but it seems
oskit-mach doesn't do that, gnumach probably returns the number of bytes used
as well.

James A. Morrison

2002-05-26  James A. Morrison  <ja2morri@uwaterloo.ca>

        * include/mach/task_info.h: Fixed comments for VIRTUAL_SIZE and 
        RESIDENT_SIZE

Index: include/mach/task_info.h
===================================================================
RCS file: /cvsroot/hurd/gnumach/include/mach/task_info.h,v
retrieving revision 1.2
diff -u -r1.2 task_info.h
--- include/mach/task_info.h    20 Aug 1997 20:30:47 -0000      1.2
+++ include/mach/task_info.h    26 May 2002 19:57:37 -0000
@@ -54,8 +54,8 @@
 struct task_basic_info {
        integer_t       suspend_count;  /* suspend count for task */
        integer_t       base_priority;  /* base scheduling priority */
-       vm_size_t       virtual_size;   /* number of virtual pages */
-       vm_size_t       resident_size;  /* number of resident pages */
+       vm_size_t       virtual_size;   /* bytes of virtual memory */
+       vm_size_t       resident_size;  /* bytes of resident memory */
        time_value_t    user_time;      /* total user run time for
                                           terminated threads */
        time_value_t    system_time;    /* total system run time for



reply via email to

[Prev in Thread] Current Thread [Next in Thread]