Slashdot Mirror


Convert Unneeded VRAM Into A Storage Device

Pawel Kot writes "Have you ever thought why does your graphics card has so much memory? Do You think you have not enough RAM or awfully slow swap file? Do you need fast ram-disk or diskless machine? Go for it! Take one of these cheap 128MB graphics cards and enjoy the speed. Michal Schulz wrote a good description on how to take the advantage of not used video card memory."

14 of 239 comments (clear)

  1. Chances are... by thelinuxking · · Score: 3, Interesting

    If you HAVE a new 128 mb video card (which isn't that cheap!), you probably also have a fast processor and motherboard, and lots of memory anyway.

    I strongly doubt you would buy a fast processor with an agp motherboard (needed for the card), and desperately needed memory so badly, that you take from the 128 mb video card.

  2. speed? by awing0 · · Score: 4, Interesting

    Would the speed of the VRAM be affected by the AGP read back bandwidth issue? I'm looking for the story that was posted on slashdot a while back, but the search function is less than adequate.

    On another note, this would be usefull for older machines that only have SIMMS and use EDO/FP RAM which is a lot more expensive than todays SD/DDR RAM. But, alas, those old machine don't have AGP ports. So, really, I don't see the point to this.

    --
    Cthulhu Saves.
  3. Re:I can't help but think.... by Anonymous Coward · · Score: 2, Interesting

    What if all banks or the memory addressable by the controller are filled? This is a nifty little solution. I currently have a slightly older machine that is maxed with 768 megs of PC133 memory (3 banks, max support 256 per bank).

    It's currently being employed as a database and fileserver. There is a possible project coming up where the database will be quite a bit larger--768 will probably be used up--but this is not really essential. A ramdisk may be necessary. I could go out and buy a new machine, but I don't have to. I could use this fun method. This is a nifty solution for a ramdisk.

    Are there any PCI cards on the market that are made just for this purpose? e.g. not a video card, but just a PCI card with DDR or DIMM banks and maybe a controller (not talking about those cpu/dimm pci machine on a card setups).

  4. Re: Oh, it can be useful all right by Anonymous Coward · · Score: 2, Interesting

    Here's some instances...

    I just happen to have a nVidia geForce2go which I'm using in vesa mode becasue the nvidia module is proprietary...

    Now I can swap to the video memory I'm not using and put that memory to use.

    How about using that video memory for /tmp on headless servers? (Its common to leave a video card in headless servers for maintanance).

    I just don't understand why people are so negative when people have come up with a new way to show just how flexible the linux kernel can be... just because some feature doesn't meet your needs doesn't mean it doesn't meet mine.

    If you want a one size fit all solution, then try some of those companies in the northwest part of the country.

  5. Prior Art by Istealmymusic · · Score: 2, Interesting
    Heh, does anyone remember the virii that spread through the MS-DOS console VRAM? It was a pain at LAN parties where we would swap vidcards all the time. I can't recall the name, but it TSR'd in B800:0000 real mode. You can view the VRAM in Windows or DOS using debug:
    C:\>debug
    -db800:0 B800:0000 2D 07 64 07 62 07 38 07-30 07 30 07 3A 07 30 07 -.d.b.8.0.0.:.0.

    This goes to show how virus authors's creativity evolves pretty fast, its funny how nowadays someone is showing how to use VRAM for legitimate purposes. Who would have known? Those crazy VXers thought of it first.

    --
    "The lesson to be learned is not to take the comments on slashdot too literally." --Vinnie Falco, BearShare
  6. Hidden Security by Anonymous Coward · · Score: 2, Interesting

    Say you want the hide "data", outside of normal memory. This a great way to add secure memory.

    Write a fast bitblit routine to erase the "hidden memory. Use the graphic engine to add real time xor of crypto keys.

    Don't think of it as just memory but think of it as secret memory.

    Shaun

  7. This used to be useful, once upon a time. by SETIGuy · · Score: 2, Interesting

    I used a similar technique on my XT compatible after I upgraded it with a VGA card with 256KB of RAM on it (long after everyone had thrown away their XTs). So long as you managed to avoid writing into the visible screen, a lot of it could be used for storage (with a bit of work on the page selection registers). I still have that machine. It's got 640k on the main board, 256k on the VGA, and 2 MB on an EMS 4.0 board. (2.875 MB total) There were times when I used every byte.

    Of course there's a big difference between boosting a maxed out XT and expanding the capacity of your P4 2.8Ghz from 2GB to 2.064GB.

  8. Re:Old School DOS Memory Managers by Safety+Cap · · Score: 4, Interesting
    ~create a handful more conventional memory beyond the 640k~
    During one QA session with QEMM 6.x, we managed to create something in the neighborhood of 900k (!) conventional memory. If memory serves, the trick was to stealth the roms out with QEMM, copy command.com onto Kernl386.exe and fire up Win 3.1 (if any of you punks who didn't live on the top floor of 150 Pico remember different, please chip in).
    --
    Yeah, right.
  9. YOU PEOPLE DON'T GET IT by Anonymous Coward · · Score: 1, Interesting

    Think about the fact that a old of older pentium 1/socket7/super7 motherboard chipsets can't handle caching about 64 meg of ram. As a result if you add more ram the system may slow down because the L2 cache can't address about 64. Also, simms tend to be expensive. Now if you take a old pentium for a router or fileserver and you have a few old 4 meg or so video cards that X might not support anyways you can configure them as swap devices which a) you don't have to worry about slowing down the system due to L2 caching addressing limits b) swapping to ram devices is a hell of a lot faster than swap. This hack allows you to add some more life to a few older systems at the cost of a few pci slots.

    I know this hack isn't great for newer systems but I have plenty of older boxes that can take advantage of this nicely.

    auto262814@hushmail.com

  10. Re:What the hell can I do with that? by not_cub · · Score: 5, Interesting
    Yes there are. I attempted to write a program to find the weak Schur numbers using this (I needed to bitshift bit arrays larger than 32-bits a lot, and I figured a way that a video card could do this well, especially on this problem). The real problem with this approach was the bandwidth back to the processor mentioned in a slashdot article not so long ago. Most consumer video cards just aren't designed to send data back to the processor fast.

    not_cub

    --
    q='echo "q=$s$q$s;s=$b$s;b=$b$b;$q"';s=\';b=\\;echo "q=$s$q$s;s=$b$s;b=$b$b;$q"
  11. Probably I am the only one who used this trick by Anonymous Coward · · Score: 1, Interesting


    I used this trick long long times back. I was a unix programmer but was using DOS based gateway so that I can use the novell servers in NYNEX ( you may remember who NYNEX was ). I was running short of memory by about 10 - 20K bytes and finally used this video ram for keeping my data structure. There were about 11 TSRs you needed to load to get IP and IPX stack going on DOS.

    If your voice mail boxes work even today ( unless they threw away the code ... ) in NY/CT and also in all the BellSouth area in Florida/Texes and other souther states then you know that this worked.

    Anyway, these are not the brightest momenst of my programming life but sure was interesting.

  12. Re:I can't help but think.... by friscolr · · Score: 3, Interesting
    Isn't this a bit wasteful? I mean you can buy 128mb of memory for a LOT cheaper than one of those "ultra cheap 128mb graphics cards".

    sometimes we get servers thrown in our laps that already have gfx cards which aren't needed. my last Sun came with 128mb video card plus an onboard 64mb card. i don't use either one since i use serial console on the thing.

    I'm working on cd's that will install themselves into memory filesystems. Problem is, to get a decent set of apps i need a lot of memory. Using vram would be very nice, maybe not for a machine that i would spec out since i'd buy it with enough RAM, but what about borrowing/hijacking machines? Imagine using this cd to go to library, boot computer from cd, cd ejects (so there's no trace of you since upon reboot, mem is wiped), you walk on. what you left behind: a machine running gnutella and using memory file systems to store files on. getting more space from the vram would be essential.

  13. Isn't this what Quartz Extreme is all about? by JohnsonWax · · Score: 4, Interesting

    Basically Apple is finding a use for all of that VRAM while users are futzing around not playing 3D games. Granted, it's finding interesting ways to accelerate 2D video and using the AGP to pull from main RAM as well, but it's in the same sprit as stuffing random data in there.

    Rather than buy an extra card for this purpose, the question to ask is how much of that 128MB am I using day-to-day. If the answer is *none* (as Apple determined) then this is a good thing.

  14. Why so much RAM? by yancey · · Score: 2, Interesting

    I've often wondered why operating systems today require so much RAM in the first place. Most people just want to browse the web, check their email, and perhaps play some music. Why does Windows, or any other OS, require such resources to pull off these relatively simple tasks?

    --
    Ouch! The truth hurts!