hello.
i want to know that does there exist any system command for determining size of ram.(also of data cache).
hello.
i want to know that does there exist any system command for determining size of ram.(also of data cache).
Sort of. I don’t believe that there is a simple exported API in the
kernel that will do this, surprisingly enough. There is in user mode,
but I don’t remember the name; check MSDN. In the kernel, you can parse
HKEY_LOCAL_MACHINE\HARDWARE\RESOURCEMAP\System Resources\Physical
Memory:.Translated (REG_RESOURCE_LIST). The same information (I
believe) can be obtained from MmGetPhysicalMemoryRanges(), so it will
tell you what you want, but it’s not a simple as one might expect. It
returns an array of:
NTKERNELAPI
PPHYSICAL_MEMORY_RANGE
MmGetPhysicalMemoryRanges (VOID);
struct PHYSICAL_MEMORY_RANGE
{
PHYSICAL_ADDRESS BaseAddress;
LARGE_INTEGER NumberOfBytes;
};
I have node idea of how or even if you are supposed to free the return
value.
If you get really desperate, you can also parse the information out of
the SMBIOS tables.
Good luck,
mm
WMI can be helpful for u in this case i guess.
I want to find the size of cache during the boot time, as my filter driver will call the function to find this size and do some dependant task!
Can u plz help me?
I think that this is in the SMBIOS tables as well, or at least on paper
can be.
Good luck,
mm
xxxxx@gmail.com wrote:
I want to find the size of cache during the boot time, as my filter driver will call the function to find this size and do some dependant task!
Can u plz help me?
The size of the cache manager buffer cache? That cache? Or the processor cache?
On Jan 18, 2008 5:17 AM, Martin O’Brien wrote:
> I think that this is in the SMBIOS tables as well, or at least on paper
> can be.
>
> Good luck,
>
> mm
> xxxxx@gmail.com wrote:
> > I want to find the size of cache during the boot time, as my filter driver will call the function to find this size and do some dependant task!
> >
> > Can u plz help me?
> >
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule debugging and file system seminars
> (including our new fs mini-filter seminar) visit:
> http://www.osr.com/seminars
>
> You are currently subscribed to ntfsd as: xxxxx@hollistech.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
–
Mark Roddy
This is an excellent point; my assumption was that the dev meant
L1/L2/L3 or thereabouts, which looking ‘during boot time,’ very well may
not be correct.
mm
Mark Roddy wrote:
The size of the cache manager buffer cache? That cache? Or the processor cache?
On Jan 18, 2008 5:17 AM, Martin O’Brien wrote:
>> I think that this is in the SMBIOS tables as well, or at least on paper
>> can be.
>>
>> Good luck,
>>
>> mm
>> xxxxx@gmail.com wrote:
>>> I want to find the size of cache during the boot time, as my filter driver will call the function to find this size and do some dependant task!
>>>
>>> Can u plz help me?
>>>
>> —
>> NTFSD is sponsored by OSR
>>
>> For our schedule debugging and file system seminars
>> (including our new fs mini-filter seminar) visit:
>> http://www.osr.com/seminars
>>
>> You are currently subscribed to ntfsd as: xxxxx@hollistech.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>
>
test.
i meant the cache manager buffer cache where all file data is cached.
How could i get it at the boot time?? because my filter driver will load at the boot time and hv to deal with that cache…
What an odd requirement. Offhand I don’t know of anyway to determine
how big the buffer cache is. As far as I know the buffer cache is
dynamically sized and you should rethink your design requirements.
On Jan 21, 2008 1:01 AM, wrote:
> i meant the cache manager buffer cache where all file data is cached.
>
> How could i get it at the boot time?? because my filter driver will load at the boot time and hv to deal with that cache…
>
> —
> NTFSD is sponsored by OSR
>
> For our schedule debugging and file system seminars
> (including our new fs mini-filter seminar) visit:
> http://www.osr.com/seminars
>
> You are currently subscribed to ntfsd as: xxxxx@hollistech.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
–
Mark Roddy