114 |
dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n")); |
dmsg(1,("Copyright (C) 2005-2009 Christian Schoenebeck\n")); |
115 |
|
|
116 |
#if defined(WIN32) |
#if defined(WIN32) |
117 |
|
#if 0 |
118 |
// some WIN32 memory info code which tries to determine the maximum lockable amount of memory (for debug purposes) |
// some WIN32 memory info code which tries to determine the maximum lockable amount of memory (for debug purposes) |
119 |
SYSTEM_INFO siSysInfo; |
SYSTEM_INFO siSysInfo; |
120 |
long physical_memory; |
long physical_memory; |
121 |
GetSystemInfo(&siSysInfo); |
GetSystemInfo(&siSysInfo); |
122 |
dmsg(1,("page size=%d\n", siSysInfo.dwPageSize)); |
dmsg(2,("page size=%d\n", siSysInfo.dwPageSize)); |
123 |
|
|
124 |
MEMORYSTATUSEX statex; |
MEMORYSTATUSEX statex; |
125 |
statex.dwLength = sizeof (statex); |
statex.dwLength = sizeof (statex); |
126 |
GlobalMemoryStatusEx (&statex); |
GlobalMemoryStatusEx (&statex); |
127 |
dmsg(1, ("There are %*I64d total Kbytes of physical memory.\n", |
dmsg(2, ("There are %*I64d total Kbytes of physical memory.\n", |
128 |
8, statex.ullTotalPhys)); |
8, statex.ullTotalPhys)); |
129 |
dmsg(1, ("There are %*I64d free Kbytes of physical memory.\n", |
dmsg(2, ("There are %*I64d free Kbytes of physical memory.\n", |
130 |
8, statex.ullAvailPhys)); |
8, statex.ullAvailPhys)); |
131 |
physical_memory = statex.ullTotalPhys; |
physical_memory = statex.ullTotalPhys; |
132 |
|
|
159 |
if(RequestedMinimumWorkingSetSize < DefaultMinimumWorkingSetSize) break; |
if(RequestedMinimumWorkingSetSize < DefaultMinimumWorkingSetSize) break; |
160 |
} |
} |
161 |
|
|
162 |
dmsg(1,("AFTER GetProcessWorkingSetSize: res = %d MinimumWorkingSetSize=%d, MaximumWorkingSetSize=%d\n", res,MinimumWorkingSetSize, MaximumWorkingSetSize)); |
dmsg(2,("AFTER GetProcessWorkingSetSize: res = %d MinimumWorkingSetSize=%d, MaximumWorkingSetSize=%d\n", res,MinimumWorkingSetSize, MaximumWorkingSetSize)); |
163 |
|
#endif |
164 |
#endif // WIN32 |
#endif // WIN32 |
165 |
|
|
166 |
if (tune) { |
if (tune) { |