[GRASS-dev] ramdisk as mapset?

Jakub Kulczynski qba at sztormik.com
Sat Jul 21 14:24:41 EDT 2007


On 2007-07-19, at 09:14, Hamish wrote:
> ideas so far:
> 1) [Linux] create a 2GB ramdisk using ramfs. use g.mapset to swich  
> into
> it, do the heavy i/o. switch back to the original mapset, g.copy the
> results map back to the "real" mapset, then destroy the ramdisk.
> advantages: easy to do.
> disadvantages: it's more of a local hack than a general solution.
[...]
> problem: how to set group ID and mode/umask for ramdrive without
> having to do chown+chmod as root?
You can't. Well actually you could use sudo (preferably with nopasswd  
option) to chown+chmod the dir.
Apart from that I'd suggest using something from BSD family, but  
that's not that important :)

You'll get a great speed boost - the problem with a lot of disk I/O  
operations isn't about caching (you could probably increase the cache  
size, but that's not it) but I/Os themselves. RAMdrive gets rid of  
this problem :) Tested and working great (not with GRASS though :) )

regards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.osgeo.org/pipermail/grass-dev/attachments/20070721/ad94f484/PGP.bin


More information about the grass-dev mailing list