BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

RAMDISK

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical)
View previous topic :: View next topic  
Author Message
Entropia
Guest





PostPosted: Fri Jun 27, 2003 2:55 pm    Post subject: RAMDISK Reply with quote



Hey,

Someone told me to use RAMDISK to speed up my programm, but I don't know
this at all and I do not find real usable information about it.

Does anyone know what this is, if it's worth implementing and if, how to
implement?

Thanks in advance!

Leen



Back to top
Alisdair Meredith
Guest





PostPosted: Fri Jun 27, 2003 3:41 pm    Post subject: Re: RAMDISK Reply with quote



Entropia wrote:

Quote:
Someone told me to use RAMDISK to speed up my programm, but I don't know
this at all and I do not find real usable information about it.

Does anyone know what this is, if it's worth implementing and if, how to
implement?

RamDisk is an old DOS utility to treat a portion of RAM on your PC as if
it was a disk. Once you have 'mounted' this disk you can copy files
onto it, and then accessing these files simple memory access.

If your process is all that the machine needs running, and you have
quite a few read only or temporary files, you might benefit from using a
RAMdisk to hack around Windows own memory management schemes. Although
I will confess, I'm not sure whether RAMdisk-RAM is subject to swapping
along with the rest of RAM. If so, they are even less useful.

The danger of a RAMdisk is that all file access goes to RAM, not a
permanent storage medium. You will likely lose all data in event of a
power failure or system crash.

We were using RAM disks a couple of years ago on some older Win95 boxes,
not sure if they are available under NT-derived systems.

I would be very careful about trusting someone who says 'use a RAMdisk
to optimise your system' without explaining any of the details above.
It sounds like they have heard something was a good idea once, dropped a
name, and left you to work out the details. RAMdisks are very rarely
useful for a modern Windows application.

--
AlisdairM
Team Thai Kingdom


Back to top
Thomas J. Theobald
Guest





PostPosted: Fri Jun 27, 2003 4:13 pm    Post subject: Re: RAMDISK Reply with quote



If you're using DOS, yeah.

If not, don't bother. If you're really hot to deal with something strictly
in RAM, stick with a memory stream or a pointer to your own block of memory.
If you're using it a lot it won't get paged, and you should have fast access
to it.

T



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Non-Technical) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.