Author Topic: Removing VRAM totally..  (Read 3099 times)

0 Members and 5 Guests are viewing this topic.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Removing VRAM totally..
« on: September 07, 2006, 08:46:29 pm »
I'm thinking about not using VRAM at all. I've got a gig of RAM and I've never reached more than 800MB used of total ram (2048MB-ish, implying a 1gb swapfile) and my PF usage is consistantly at around 200MB. Before I do this, though, is there any reason I shouldn't that I've overlooked?
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Removing VRAM totally..
« Reply #1 on: September 07, 2006, 09:06:00 pm »
.............



Go hang yourself.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Removing VRAM totally..
« Reply #2 on: September 07, 2006, 09:09:22 pm »
.............



Go hang yourself.

Now why the fuck did you say that? I said I have enough ram that I don't need virtual ram, but virtual ram is being used anyhow and to stop this from happening I'd like to disable it, but I was wondering if this would cause problems.

I hate to have to say this to a leader, my elder, and my mentor, but for the love of God, show some maturity and curtesy.
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Removing VRAM totally..
« Reply #3 on: September 07, 2006, 09:38:48 pm »
Now why the fuck did you say that? I said I have enough ram that I don't need virtual ram, but virtual ram is being used anyhow and to stop this from happening I'd like to disable it, but I was wondering if this would cause problems.
OH.  You're talking about virtual RAM (as opposed to video RAM for which "VRAM" is typically the acronym, since virtual memory is, you know, typically called "virtual memory").

Look at it this way: Windows allocates 2gb of virtual memory address space to every process in the system, and 2gb shared virtual memory address space to the kernel.  If you were to disable virtual memory altogether, you'd never be able to page data out of memory, and you'd run out of memory a lot faster than you think.

I hate to have to say this to a leader, my elder, and my mentor, but for the love of God, show some maturity and curtesy.
You sound like GameSnake.  Take the crying and drama somewhere else.
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.

Offline Joe

  • B&
  • x86
  • Hero Member
  • *****
  • Posts: 10319
  • In Soviet Russia, text read you!
    • View Profile
    • Github
Re: Removing VRAM totally..
« Reply #4 on: September 07, 2006, 10:26:27 pm »
@First paragraph: Ah, ok. So basically I cant lower virtual ram in any way? I'm just trying to force stuff off the hard disk and into the physical RAM until it's used up, if that's possible.

@Second paragraph: Hehe, I hated to say that, but for some reason I thought you randomly became a total asshole overnight, but if you thought that was video ram then I can understand you telling me to hang myself. :P
I'd personally do as Joe suggests

You might be right about that, Joe.


Offline iago

  • Leader
  • Administrator
  • Hero Member
  • *****
  • Posts: 17914
  • Fnord.
    • View Profile
    • SkullSecurity
Re: Removing VRAM totally..
« Reply #5 on: September 07, 2006, 10:44:30 pm »
You sound like GameSnake.  Take the crying and drama somewhere else.
I generally try not to get involved in stuff, but this "Go hang yourself" was totally uncalled for. 

Offline MyndFyre

  • Boticulator Extraordinaire
  • x86
  • Hero Member
  • *****
  • Posts: 4540
  • The wait is over.
    • View Profile
    • JinxBot :: the evolution in boticulation
Re: Removing VRAM totally..
« Reply #6 on: September 07, 2006, 10:54:25 pm »
@First paragraph: Ah, ok. So basically I cant lower virtual ram in any way? I'm just trying to force stuff off the hard disk and into the physical RAM until it's used up, if that's possible.

All I'm saying is that the Windows memory manager is very good at what it does, and you shouldn't try to do that.  If you succeeded, as soon as you created a new process, what happens when you run out of space?

For example, my computer at home has 2gb of RAM.  My typical working set is roughly 350mb at about 52 processes.  WoW by itself has a working set (once I've been in for a while) of about 840mb, which is insane.

Let's say that I had 1gb of RAM.  I likely wouldn't be running WoW at the same resolution, but here's what would happen if I had the minimum total virtual memory set up:

I run WoW, its working set gets to 840 mb.  Suddenly a background process gets an interrupt (perhaps an incoming network connection), so part of some other process gets paged out because the interrupted process incurred a page fault.  Most likely because part of the kernel needs to stay in memory (the page tables and memory manager), part of WoW gets swapped out.  The background process runs its time quanta, and the thread scheduler puts WoW back on because it's the foreground task.  The swapped-out WoW memory page faults, and so we pull it back in.

When you're running with low virtual memory, the system has to spend more time in kernel context switches and in kernel functions because it tends to page fault more often (because more physical memory is in use).  If you have free physical memory, page faults can read the memory from disk, but don't require swapping memory out of other processes.

If you want to improve pagefile usage, set your pagefile size to 0 on all drives, restart, and set your pagefile to a constant size and restart again (do this by setting the pagefile to a custom size specifying the same value in the minimum and maximum fields; see the attachment for more information about where that is).  Since the pagefile is reserved space, this helps to prevent pagefile fragmentation and dynamic resizing by Windows, which can get to be expensive.

For even better pagefile performance, allocate the pagefile on a RAID-0 volume (this is done by having two dynamic disks and creating a Striped Volume in disk manager).  However, this requires that you have at least three disks present in the computer (one disk with the OS and two dynamic disks).
I have a programming folder, and I have nothing of value there

Running with Code has a new home!

Our species really annoys me.