Found this link via BoingBoing:
http://gentoo-wiki.com/TIP_Use_memory_on_video_card_as_swap
Briefly, it describes how to set up RAM in an old video card so that Linux can use it as a fast(?) RAMdisk. Very interesting idea, for a number of reasons I thought of:
- video ram, espcially in newer cards, can be substantial: 512MB or 1GB;
- video ram is usually optimized to be very fast, with direct CPU access and wide data paths;
- depending on hardware, you may be able to leverage insanely fast hardware memory move/copy functions, transformations, etc. (Though I think applying hardware texture shading to a block of data would be, erm, counterproductive...)
The article leaves it as an exercise for the user to actually implement the thing, does not delve into performance much, and warns that video memory is not ECC protected and thus may not be as stable as "real" RAM. To this I say "pish posh", but then I like to juggle flaming chainsaws in a pool of gasoline.
What are your thoughts on this? How would you like a Windows driver that allocated half your video RAM as a swap disk? I mean do you really need all that stuff when you're not playing BioShock?
Could one use DirectX to get at the RAM?
How feasible/desireable is this for real world applications once you get past the "holy shiat that's cool" factor?
http://gentoo-wiki.com/TIP_Use_memory_on_video_card_as_swap
Briefly, it describes how to set up RAM in an old video card so that Linux can use it as a fast(?) RAMdisk. Very interesting idea, for a number of reasons I thought of:
- video ram, espcially in newer cards, can be substantial: 512MB or 1GB;
- video ram is usually optimized to be very fast, with direct CPU access and wide data paths;
- depending on hardware, you may be able to leverage insanely fast hardware memory move/copy functions, transformations, etc. (Though I think applying hardware texture shading to a block of data would be, erm, counterproductive...)
The article leaves it as an exercise for the user to actually implement the thing, does not delve into performance much, and warns that video memory is not ECC protected and thus may not be as stable as "real" RAM. To this I say "pish posh", but then I like to juggle flaming chainsaws in a pool of gasoline.
What are your thoughts on this? How would you like a Windows driver that allocated half your video RAM as a swap disk? I mean do you really need all that stuff when you're not playing BioShock?
Could one use DirectX to get at the RAM?
How feasible/desireable is this for real world applications once you get past the "holy shiat that's cool" factor?




- carpe noctem


