Hi, How can I find out how much memory the VW process is using? When I perform this script: ObjectMemory verboseGlobalCompactingGC. CPointerType defaultPointer malloc: 10000000. ObjectMemory verboseGlobalCompactingGC. It says on the transcript: Global garbage collection (please wait)... reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. Global garbage collection (please wait)... reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. Even though I allocated 40MB of memory, this is not visible in the numbers given by the “global garbage collect” info. They stay the same. In the windows task manager this change in memory usage is visible though. Is there a way to get the exact number of used bytes of the visual works process? I’m running on windows. Thanks, Mark _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
With malloc, you allocate a chunk of memory directly from the OS. The
values reported in the Transcript refer to space taken by objects as managed by the VM. On 5/6/2011 12:30 AM, Mark Plas wrote: > Hi, > > How can I find out how much memory the VW process is using? > > When I perform this script: > > ObjectMemory verboseGlobalCompactingGC. > > CPointerType defaultPointer malloc: 10000000. > > ObjectMemory verboseGlobalCompactingGC. > > It says on the transcript: > > Global garbage collection (please wait)... > > reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. > > 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. > > Global garbage collection (please wait)... > > reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. > > 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. > > Even though I allocated 40MB of memory, this is not visible in the > numbers given by the “global garbage collect” info. They stay the same. > In the windows task manager this change in memory usage is visible though. > > Is there a way to get the exact number of used bytes of the visual works > process? I’m running on windows. > > Thanks, > > Mark > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
And is there a method (on ObjectMemory for instance) that returns this total value? Not just the objects managed by the VM, but the entire process memory usage?
-----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of Andres Valloud Sent: vrijdag 6 mei 2011 10:16 To: [hidden email] Subject: Re: [vwnc] Memory usage of VW? With malloc, you allocate a chunk of memory directly from the OS. The values reported in the Transcript refer to space taken by objects as managed by the VM. On 5/6/2011 12:30 AM, Mark Plas wrote: > Hi, > > How can I find out how much memory the VW process is using? > > When I perform this script: > > ObjectMemory verboseGlobalCompactingGC. > > CPointerType defaultPointer malloc: 10000000. > > ObjectMemory verboseGlobalCompactingGC. > > It says on the transcript: > > Global garbage collection (please wait)... > > reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. > > 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. > > Global garbage collection (please wait)... > > reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. > > 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. > > Even though I allocated 40MB of memory, this is not visible in the > numbers given by the "global garbage collect" info. They stay the same. > In the windows task manager this change in memory usage is visible though. > > Is there a way to get the exact number of used bytes of the visual > works process? I'm running on windows. > > Thanks, > > Mark > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
ObjectMemory class>>dynamicallyAllocatedFootprint
Just gives the aggregate amount in use. On May 6, 2011, at 6:18 AM, Mark Plas wrote: > And is there a method (on ObjectMemory for instance) that returns this total value? Not just the objects managed by the VM, but the entire process memory usage? > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of Andres Valloud > Sent: vrijdag 6 mei 2011 10:16 > To: [hidden email] > Subject: Re: [vwnc] Memory usage of VW? > > With malloc, you allocate a chunk of memory directly from the OS. The values reported in the Transcript refer to space taken by objects as managed by the VM. > > On 5/6/2011 12:30 AM, Mark Plas wrote: >> Hi, >> >> How can I find out how much memory the VW process is using? >> >> When I perform this script: >> >> ObjectMemory verboseGlobalCompactingGC. >> >> CPointerType defaultPointer malloc: 10000000. >> >> ObjectMemory verboseGlobalCompactingGC. >> >> It says on the transcript: >> >> Global garbage collection (please wait)... >> >> reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. >> >> 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. >> >> Global garbage collection (please wait)... >> >> reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. >> >> 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. >> >> Even though I allocated 40MB of memory, this is not visible in the >> numbers given by the "global garbage collect" info. They stay the same. >> In the windows task manager this change in memory usage is visible though. >> >> Is there a way to get the exact number of used bytes of the visual >> works process? I'm running on windows. >> >> Thanks, >> >> Mark >> >> >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc James Robertson http://www.jarober.com [hidden email] _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Hi James,
It doesn't seem to work: |p| Transcript cr; show: ObjectMemory dynamicallyAllocatedFootprint printString. p := CPointerType defaultPointer gcMalloc: 10000000. p yourself. Transcript cr; show: ObjectMemory dynamicallyAllocatedFootprint printString. Writes this on the transcript: 215267840 215267840 Even if I change the gcMalloc: argument to something very large, the printed values stay the same, even though the task manager in windows shows that the process is using 600MB of memory instead of the reported 215MB. Mark -----Original Message----- From: [hidden email] [mailto:[hidden email]] On Behalf Of James Robertson Sent: vrijdag 6 mei 2011 14:24 To: VWNC NC Subject: Re: [vwnc] Memory usage of VW? ObjectMemory class>>dynamicallyAllocatedFootprint Just gives the aggregate amount in use. On May 6, 2011, at 6:18 AM, Mark Plas wrote: > And is there a method (on ObjectMemory for instance) that returns this total value? Not just the objects managed by the VM, but the entire process memory usage? > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On > Behalf Of Andres Valloud > Sent: vrijdag 6 mei 2011 10:16 > To: [hidden email] > Subject: Re: [vwnc] Memory usage of VW? > > With malloc, you allocate a chunk of memory directly from the OS. The values reported in the Transcript refer to space taken by objects as managed by the VM. > > On 5/6/2011 12:30 AM, Mark Plas wrote: >> Hi, >> >> How can I find out how much memory the VW process is using? >> >> When I perform this script: >> >> ObjectMemory verboseGlobalCompactingGC. >> >> CPointerType defaultPointer malloc: 10000000. >> >> ObjectMemory verboseGlobalCompactingGC. >> >> It says on the transcript: >> >> Global garbage collection (please wait)... >> >> reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. >> >> 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. >> >> Global garbage collection (please wait)... >> >> reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. >> >> 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. >> >> Even though I allocated 40MB of memory, this is not visible in the >> numbers given by the "global garbage collect" info. They stay the same. >> In the windows task manager this change in memory usage is visible though. >> >> Is there a way to get the exact number of used bytes of the visual >> works process? I'm running on windows. >> >> Thanks, >> >> Mark >> >> >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc James Robertson http://www.jarober.com [hidden email] _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
So far as I recall, allocating C memory that way should use FixedSpace. But perhaps someone from Cincom engineering can give a more definitive answer than I can.
On May 6, 2011, at 8:44 AM, Mark Plas wrote: > Hi James, > > It doesn't seem to work: > > > |p| > Transcript cr; show: ObjectMemory dynamicallyAllocatedFootprint printString. > p := CPointerType defaultPointer gcMalloc: 10000000. > p yourself. > Transcript cr; show: ObjectMemory dynamicallyAllocatedFootprint printString. > > Writes this on the transcript: > > 215267840 > 215267840 > > Even if I change the gcMalloc: argument to something very large, the printed values stay the same, even though the task manager in windows shows that the process is using 600MB of memory instead of the reported 215MB. > > Mark > > -----Original Message----- > From: [hidden email] [mailto:[hidden email]] On Behalf Of James Robertson > Sent: vrijdag 6 mei 2011 14:24 > To: VWNC NC > Subject: Re: [vwnc] Memory usage of VW? > > ObjectMemory class>>dynamicallyAllocatedFootprint > > Just gives the aggregate amount in use. > > On May 6, 2011, at 6:18 AM, Mark Plas wrote: > >> And is there a method (on ObjectMemory for instance) that returns this total value? Not just the objects managed by the VM, but the entire process memory usage? >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On >> Behalf Of Andres Valloud >> Sent: vrijdag 6 mei 2011 10:16 >> To: [hidden email] >> Subject: Re: [vwnc] Memory usage of VW? >> >> With malloc, you allocate a chunk of memory directly from the OS. The values reported in the Transcript refer to space taken by objects as managed by the VM. >> >> On 5/6/2011 12:30 AM, Mark Plas wrote: >>> Hi, >>> >>> How can I find out how much memory the VW process is using? >>> >>> When I perform this script: >>> >>> ObjectMemory verboseGlobalCompactingGC. >>> >>> CPointerType defaultPointer malloc: 10000000. >>> >>> ObjectMemory verboseGlobalCompactingGC. >>> >>> It says on the transcript: >>> >>> Global garbage collection (please wait)... >>> >>> reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. >>> >>> 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. >>> >>> Global garbage collection (please wait)... >>> >>> reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. >>> >>> 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. >>> >>> Even though I allocated 40MB of memory, this is not visible in the >>> numbers given by the "global garbage collect" info. They stay the same. >>> In the windows task manager this change in memory usage is visible though. >>> >>> Is there a way to get the exact number of used bytes of the visual >>> works process? I'm running on windows. >>> >>> Thanks, >>> >>> Mark >>> >>> >>> >>> _______________________________________________ >>> vwnc mailing list >>> [hidden email] >>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > James Robertson > http://www.jarober.com > [hidden email] > > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc James Robertson http://www.jarober.com [hidden email] _______________________________________________ vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by jarober
That's just the memory managed directly by the VM, i.e.: the object
memory. It also includes a couple extra bits like the native code cache and the native stack, but for the most part it's just the space allocated to objects. You can see that in the implementation: dynamicallyAllocatedFootprint "Answer the total size (in bytes) of the dynamically allocated footprint represented by the receiver." ^self edenBytes + (self survBytes * 2) + self largeBytes + self stackBytes + self compCodeCacheBytes + self oldBytes + self permBytes + self fixedBytes On 5/6/2011 5:24 AM, James Robertson wrote: > ObjectMemory class>>dynamicallyAllocatedFootprint > > Just gives the aggregate amount in use. > > On May 6, 2011, at 6:18 AM, Mark Plas wrote: > >> And is there a method (on ObjectMemory for instance) that returns this total value? Not just the objects managed by the VM, but the entire process memory usage? >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of Andres Valloud >> Sent: vrijdag 6 mei 2011 10:16 >> To: [hidden email] >> Subject: Re: [vwnc] Memory usage of VW? >> >> With malloc, you allocate a chunk of memory directly from the OS. The values reported in the Transcript refer to space taken by objects as managed by the VM. >> >> On 5/6/2011 12:30 AM, Mark Plas wrote: >>> Hi, >>> >>> How can I find out how much memory the VW process is using? >>> >>> When I perform this script: >>> >>> ObjectMemory verboseGlobalCompactingGC. >>> >>> CPointerType defaultPointer malloc: 10000000. >>> >>> ObjectMemory verboseGlobalCompactingGC. >>> >>> It says on the transcript: >>> >>> Global garbage collection (please wait)... >>> >>> reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. >>> >>> 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. >>> >>> Global garbage collection (please wait)... >>> >>> reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. >>> >>> 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. >>> >>> Even though I allocated 40MB of memory, this is not visible in the >>> numbers given by the "global garbage collect" info. They stay the same. >>> In the windows task manager this change in memory usage is visible though. >>> >>> Is there a way to get the exact number of used bytes of the visual >>> works process? I'm running on windows. >>> >>> Thanks, >>> >>> Mark >>> >>> >>> >>> _______________________________________________ >>> vwnc mailing list >>> [hidden email] >>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > James Robertson > http://www.jarober.com > [hidden email] > > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
In reply to this post by jarober
It depends... each way has its advantages and disadvantages.
On 5/6/2011 5:54 AM, James Robertson wrote: > So far as I recall, allocating C memory that way should use FixedSpace. But perhaps someone from Cincom engineering can give a more definitive answer than I can. > > > On May 6, 2011, at 8:44 AM, Mark Plas wrote: > >> Hi James, >> >> It doesn't seem to work: >> >> >> |p| >> Transcript cr; show: ObjectMemory dynamicallyAllocatedFootprint printString. >> p := CPointerType defaultPointer gcMalloc: 10000000. >> p yourself. >> Transcript cr; show: ObjectMemory dynamicallyAllocatedFootprint printString. >> >> Writes this on the transcript: >> >> 215267840 >> 215267840 >> >> Even if I change the gcMalloc: argument to something very large, the printed values stay the same, even though the task manager in windows shows that the process is using 600MB of memory instead of the reported 215MB. >> >> Mark >> >> -----Original Message----- >> From: [hidden email] [mailto:[hidden email]] On Behalf Of James Robertson >> Sent: vrijdag 6 mei 2011 14:24 >> To: VWNC NC >> Subject: Re: [vwnc] Memory usage of VW? >> >> ObjectMemory class>>dynamicallyAllocatedFootprint >> >> Just gives the aggregate amount in use. >> >> On May 6, 2011, at 6:18 AM, Mark Plas wrote: >> >>> And is there a method (on ObjectMemory for instance) that returns this total value? Not just the objects managed by the VM, but the entire process memory usage? >>> >>> -----Original Message----- >>> From: [hidden email] [mailto:[hidden email]] On >>> Behalf Of Andres Valloud >>> Sent: vrijdag 6 mei 2011 10:16 >>> To: [hidden email] >>> Subject: Re: [vwnc] Memory usage of VW? >>> >>> With malloc, you allocate a chunk of memory directly from the OS. The values reported in the Transcript refer to space taken by objects as managed by the VM. >>> >>> On 5/6/2011 12:30 AM, Mark Plas wrote: >>>> Hi, >>>> >>>> How can I find out how much memory the VW process is using? >>>> >>>> When I perform this script: >>>> >>>> ObjectMemory verboseGlobalCompactingGC. >>>> >>>> CPointerType defaultPointer malloc: 10000000. >>>> >>>> ObjectMemory verboseGlobalCompactingGC. >>>> >>>> It says on the transcript: >>>> >>>> Global garbage collection (please wait)... >>>> >>>> reclaimed 0.06 Mbytes of data and 0 OTEntries in 0.6 sec. >>>> >>>> 184.41 Mbytes total; 167.06 Mbytes used, 17.35 Mbytes free. >>>> >>>> Global garbage collection (please wait)... >>>> >>>> reclaimed 0.03 Mbytes of data and 0 OTEntries in 0.6 sec. >>>> >>>> 184.41 Mbytes total; 167.03 Mbytes used, 17.38 Mbytes free. >>>> >>>> Even though I allocated 40MB of memory, this is not visible in the >>>> numbers given by the "global garbage collect" info. They stay the same. >>>> In the windows task manager this change in memory usage is visible though. >>>> >>>> Is there a way to get the exact number of used bytes of the visual >>>> works process? I'm running on windows. >>>> >>>> Thanks, >>>> >>>> Mark >>>> >>>> >>>> >>>> _______________________________________________ >>>> vwnc mailing list >>>> [hidden email] >>>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >>> _______________________________________________ >>> vwnc mailing list >>> [hidden email] >>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >>> >>> _______________________________________________ >>> vwnc mailing list >>> [hidden email] >>> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc >> >> James Robertson >> http://www.jarober.com >> [hidden email] >> >> >> >> >> _______________________________________________ >> vwnc mailing list >> [hidden email] >> http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > > James Robertson > http://www.jarober.com > [hidden email] > > > > > _______________________________________________ > vwnc mailing list > [hidden email] > http://lists.cs.uiuc.edu/mailman/listinfo/vwnc > vwnc mailing list [hidden email] http://lists.cs.uiuc.edu/mailman/listinfo/vwnc |
Free forum by Nabble | Edit this page |