G
Guest
Does anyone know of a way to pin point true memory utilization on a per
object / allocation basis in dot net.
The problem that i'm having is projecting the amount of memory that will be
required by an application.
Obviously there is a component size (i.e. a class that is using 2 32bit
integers will use 8byte) but then there is a question of overhead for .NET
management (i.e. vtables, lookup tables, garbage collector pointer on a per
instance basis etc etc etc... ) Is there a way to determine how much memory
is actually being used by an object (mathematical formula is fine as well).
Going to the same point - how much memory does a delegate take up? In C it
used to be size of an integer....
In the end of the day my problem is this:
If i have 10 million objects loaded in ram, each is at about 40 bytes of
internal value types with 10 delegates within with one function per delegate
(or multicast delegate should I say) how much memory is going to be used when
I fire it up
My estimates ranged anywhere from 3 Gb to 9 Gb depending on crude methods
I used to evaluate per instance memory utilization
object / allocation basis in dot net.
The problem that i'm having is projecting the amount of memory that will be
required by an application.
Obviously there is a component size (i.e. a class that is using 2 32bit
integers will use 8byte) but then there is a question of overhead for .NET
management (i.e. vtables, lookup tables, garbage collector pointer on a per
instance basis etc etc etc... ) Is there a way to determine how much memory
is actually being used by an object (mathematical formula is fine as well).
Going to the same point - how much memory does a delegate take up? In C it
used to be size of an integer....
In the end of the day my problem is this:
If i have 10 million objects loaded in ram, each is at about 40 bytes of
internal value types with 10 delegates within with one function per delegate
(or multicast delegate should I say) how much memory is going to be used when
I fire it up
My estimates ranged anywhere from 3 Gb to 9 Gb depending on crude methods
I used to evaluate per instance memory utilization