Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > Interests > Tilted Gaming


 
 
LinkBack Thread Tools
Old 10-12-2004, 01:38 PM   #1 (permalink)
Lost
 
Munku's Avatar
 
Location: Florida
Virtual Memory?

Can someone tell me the max windows xp allows and what I should set mine at?

p4 2.0 ghz
1024 megs ram.

Is there any reason why I shouldn't go beyond 2x my physical ram? Why not 4 gigs?
Munku is offline  
Old 10-12-2004, 03:06 PM   #2 (permalink)
Upright
 
I'm not a WinXP expert, but I can comment in general.
Virtual Memory is used like physical RAM--when RAM fills up, a program may be "swapped" into virtual memory on the harddisk while it is running in the background. When this program actually does something, or especially when you are interacting with it, it needs to swapped back into real RAM. All of this swapping is not exactly quick, due to overhead of the swap process in general, and espcially because a harddrive is much slower than RAM and tends to be a bottleneck in an otherwise fast system. If you had 3gb worth of programs running, the constant swapping would slow your system down considerably (you have probably noticed your harddrive "thrashing" at points in time, swapping causes this).

Additionally, why the hell do you need 3gb of memory?? Unless you are running a very complex scientific or graphical program that stores a lot of data in memory, you are probably never going to come close to utilizing all that memory, thus wasting harddrive space. I also remember older versions of windows seemed to have a problem overutilizing virtual memory when there was plenty of physical ram, again causing harddrive thrashing and overall slow performance when it was unnecessary. I haven't used XP that much so I can't comment on this particular aspect.

Assuming that your operating system has good virtual memory algorithms, setting a VM size that large will not be particularly harmful, but will be wasteful.

Last edited by schnable; 10-12-2004 at 03:20 PM.. Reason: Oops, my numbers were off. Fixed that.
schnable is offline  
Old 10-12-2004, 03:10 PM   #3 (permalink)
Crazy
 
Location: California
Quote:
Originally Posted by Munku
Can someone tell me the max windows xp allows and what I should set mine at?

p4 2.0 ghz
1024 megs ram.

Is there any reason why I shouldn't go beyond 2x my physical ram? Why not 4 gigs?

I'm not sure what the maximum size is in XP, but the reason you might not want a larger one is that it will take up that much disk space - so having a 4 gig page file means you have 4 gigs less of HDD space.

The old answer used to be 2x your system memory, but these days with the amount of RAM people have, page files have become less important - you're probably going to fit everything you need into 1 gig of memory, and if you don't you're probably not going to need another 2 gigs on top of that.

In any case, for gaming you want to avoid use of the page file if at all possible - HDD access is, of course, a lot slower than RAM access.

Bingle
bingle is offline  
Old 10-12-2004, 04:06 PM   #4 (permalink)
Xepidemic
Guest
 
you have a gig of ram! unless your working with extremely large files chances are you arent even using your virtual memory. you could even disable virtual memory if you wanted. usually virtual memory should be 1.5 times your ram. so for you it would be 1536. or you could always get a program to control your memory such as cacheman xp.
 
Old 10-12-2004, 04:59 PM   #5 (permalink)
Upright
 
I wouldnt worry about XP's maximum VM size - its pretty big... I forget the exact number.

Here's what I can contribute:
You have 1GB of RAM, so unless you're working with large amounts of data, you're not getting much use out of your pagefile. I would not suggest disabling it, though, as Windows XP will page unused data to your pagefile in order to leave plenty of free memory for itself and your applications to use (this is in constrast to UNIX/Linux VM management which keeps everything in physical memory until its totally full). You could set your pagefile to 2GB if you want, but you'll never really need any of that (and you might be able to put that space to better use), so I would suggest setting it either to 1GB or even a bit less. Typically, it is not recommended to have less VM than physical memory, as physical memory gets dumped to VM when the OS crashes... but if you're not concerned with using that data for debugging purposes, feel free to set your VM to 512MB or so.

Hope that helped.
TheAgent is offline  
Old 10-12-2004, 06:42 PM   #6 (permalink)
Lost
 
Munku's Avatar
 
Location: Florida
Just realized this is in the wrong section! Dangit, meant to be in Computers. I mostly use my comp to play games. EQ2 and the likes. So that sort of thing is ram intensive really.
Munku is offline  
Old 10-12-2004, 07:39 PM   #7 (permalink)
Crazy
 
Let windows manage it. I think that is what Microsoft recommends.
TheFu is offline  
Old 10-12-2004, 10:11 PM   #8 (permalink)
Crazy
 
Location: California
Quote:
Originally Posted by TheFu
Let windows manage it. I think that is what Microsoft recommends.

That is what Microsoft recommends, but that's mostly so that naive users don't mess up their settings :-) It is better to set your page file size to a static amount, rather than letting Windows resize it, because when that resize occurs it is very slow - the OS has to find enough space for the additional data, and write it to disk, and then size it down again when you're done, and so forth. Also, if it has dynamic size, it will become fragmented over time when there isn't enough room for the whole file as one large block on the disk, and this can lead to other performance problems.

Bingle

Edit: although, actually, this is only for users who are most concerned with runtime performance. If you're more concerned with disk space usage, you're better off either disabling it, or letting Windows manage it for you.
bingle is offline  
Old 10-13-2004, 01:07 AM   #9 (permalink)
Crazy
 
Bingle speaks the truth.

You don't want your hard drive thrashing to resize the page file in the midst of a heated battle. Put shackles on that pagefile: set it's min/max to the same size. You'll be amazed at the performance increase. A common rule of thumb is setting the pagefile to be 1.5X the ammount of ram you have. (Though I wouldn't go higher than 1gig in all cases. There is such a thing as overkill

For added speed, set the pagefile on a separate hard drive all together. I have a speedy 2gig hard drive (11000rpm!) used specifically for my page file.

Also, I don't recommend disabling the pagefile. There are cases where programmers explicitly use virtual memory rather than physical. For example, Doom3 does this because of the way their files are decompressed into memory.
Robaggio is offline  
 

Tags
memory, virtual

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 07:52 AM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360