Jump to content

How to make KSP boot insanely fast


montyben101

Recommended Posts

Just found this out, by creating something called a RAM disk you can put KSP in there and use you systems RAM as if it were a hard drive!

KSP load times are about 5-10 seconds and thats with CSS mod and KW rocketry!

Not sure how stable this is, and of course you have to be careful of power cuts. You do need lots of RAM though, I have 8 gigs but more is better!

https://www.softperfect.com/products/ramdisk/

I use this as its free and appears to work fine.

Link to comment
Share on other sites

Well it's good for speeding stuff up, but be careful about it.

If it does what I think it does, you may end up with lightning-fast KSP but slow everything else.

I've solved the problem via SSD. The SATA 6GB/s should solve every of your problems...

Link to comment
Share on other sites

ram drives is an old technology and it works.

It has some downsides, first you need to load your files into it, it take off total memory and you loose all files on it if you shut down or restart your computer.

Yes the ramdisk might load and then write files to HD on start up and shut down but an crash still removes all.

Windows has an pretty good cache system who keep files in free memory and load them on use. This works well enough for most uses.

However if you make or tweak mods in ksp an ram disk might be an good idea as you have to start the game a lot of times.

Link to comment
Share on other sites

Yeah its useful if your going to be mod testing. Its pretty much useless if you have less than 8 gigs of ram as everything else will be slowed down to a crawl, it also takes seconds to transfer it to the RAM too.

It may actually improve frames too because its quicker to access game files and if you have a good processor then that can be fed with data faster (probably)

Edited by montyben101
Link to comment
Share on other sites

What exactly do you do? I've added a new disk, labeled it as A:\ of 4 GB volume, and copied the KSP folder into it. RAM has, as expected, been filled up. When I tried to run the program, it lasted the same time as usual. Not few seconds at all. What am I doing wrong?

Link to comment
Share on other sites

Generally speaking, RAM disks are almost always a bad idea. Modern OSes are very smart about caching disk contents to RAM, when you allocate RAM to a RAM disk you are essentially saying "I know that the files here are more important to keep in RAM than what the OS thinks", and any free space on the RAM disk is not able to be put to use by the OS as well. There's also the penalty of loading all the contents to the RAM disk at each boot, and writing them back out before shutdown (as well as losing any progress if that write out is not completed before power is cut). These reasons are why RAM disks are usually only used on single-purpose, specialized computers (think database server with a high enough load that an SSD array can't keep up).

Finally, in my experience KSP loading is to a large degree CPU-bound rather than disk-bound; when switching from a hard disk to an SSD on the same machine load times were only reduced by a minimal amount. So my bet is putting KSP in a RAM disk would give minimal benefits while having the downsides listed above.

Link to comment
Share on other sites

Years back I was doing a reinstall on a computer, and the install disks were creating a ramdrive and assigning it drive letter C. I wasn't paying attention and installed win 95 or 98 or whatever it was on C: like I always did. Install went blazing fast, and the OS was screaming fast until the first reboot. I think I did the install twice before I realized that C wasn't fixed disk 0.

Link to comment
Share on other sites

Possibly loaded from the original drive, not the ram drive.

Nope, it was loaded from the RAM drive. I've monitored the task managed while KSP was loading. At first, RAM is like 5.7 GB and when I start KSP.exe, it starts climbing. 5.8, 5.9, 6, 6.1...

So it essentially already is in RAM, but then goes: "Oh, I need to load KSP, let's start loading again. Moar memory, pls!"

It would be cool if someone can tell me exactly what I need to do with this program.

Link to comment
Share on other sites

Nope, it was loaded from the RAM drive. I've monitored the task managed while KSP was loading. At first, RAM is like 5.7 GB and when I start KSP.exe, it starts climbing. 5.8, 5.9, 6, 6.1...

So it essentially already is in RAM, but then goes: "Oh, I need to load KSP, let's start loading again. Moar memory, pls!"

It would be cool if someone can tell me exactly what I need to do with this program.

ksp.exe will use its ram independent on the ram drive, the ramdisk memory space uses as much memory as you give it, say 4gb.

Game has to be loaded the same way as normally only its loaded from an drive who is as fast as your memory, in short it would have no disk loading time, however the game still has to do lots of stuff then it starts so if your cpu is slow and perhaps do other stuff too you gain less.

Link to comment
Share on other sites

The problem with running KSP from a RAMdisk is that it appears to yield very little result. KSP seems to have issues beyond disk I/O.

That does not mean a RAMdisk can not be useful, just not here.

Link to comment
Share on other sites

before ssds took over all the things, there were a few dram based products that would turn old ram sticks into a hard drive. some were battery backed, others backed to flash media like cf cards. they were limited by the speed of the sata bus at the time and i think a modern ssd would blow it out of the water.

Link to comment
Share on other sites

Yeah I know ram disk devices since 10 years, you can reduce time, but there is a reason about why almost nobody use it.. You dont get enoght benefics taking into account how expensive they are.

We have:

Cache ram (few megabytes): super fast very expensive for data which needs to be access very frequenty

Ram (few gygabytes): fast and expensive for frequenty data access

ssd (100gb average): average and average for average data access (we can put the SO here and the most used apps, also the virtual memory file)

Hard Disk (Terabyte): slow and cheap, for data we need to load once even a while.

Internet (petabytes): for all the things we are not sure if we will check it some day.

So in that order, you can have the most cost/effective system, there is not much point to use cache ram as RAM or Ram for uses which does not need to be constant loaded.

All the computer architecture is designed with that structure in mind, so you can find few bottleneck which does not allow you to take the whole advantage of it.

Edited by AngelLestat
Link to comment
Share on other sites

before ssds took over all the things, there were a few dram based products that would turn old ram sticks into a hard drive. some were battery backed, others backed to flash media like cf cards. they were limited by the speed of the sata bus at the time and i think a modern ssd would blow it out of the water.

This is still an product however now it has probably moved out of your price range. Current use is high performance servers, it uses SSD as backup device and internal battery to store the data :)

Think you only get it as rack mounted units.

Link to comment
Share on other sites

Finally, in my experience KSP loading is to a large degree CPU-bound rather than disk-bound; when switching from a hard disk to an SSD on the same machine load times were only reduced by a minimal amount. So my bet is putting KSP in a RAM disk would give minimal benefits while having the downsides listed above.

In fairness the OP mentioned boot time and nothing else. That's where the ram disk will fly. Of course you will have to copy content TO the ramdrive but modern ramdrive drivers can take care of those little details.

Link to comment
Share on other sites

Internet (petabytes): for all the things we are not sure if we will check it some day.

I object to listing internet as storage. Internet is a collection of machines with all those forms of memory, but not a form of memory itself. The cloud it not some kind of magical realm, it's a physical machine made out of many computers. The fact that some companies treat it as external storage does little to detract from the fact that the data is still stored on platters and chips.

Link to comment
Share on other sites

i hear they are good for video editing rigs where you need high disk speed or various other professional workstation tasks. i saw some cheapish ones around $200-$300 (ram not included!). i hear you can raid0 ssds as well for more performance, though diminishing returns kicks in and you stop seeing meaningful gains at anything more than 3 disks. doing these kinds of things for a game is kind of crazy and a waste of money.

if you want to do the ram disk thing, just get a rig with 16 or more gigs of ram. do a 4-8gb disk, and have some scripts to copy data to and from it at start up/shutdown (and dont expect any performance other than faster load times).

Link to comment
Share on other sites

I object to listing internet as storage. Internet is a collection of machines with all those forms of memory, but not a form of memory itself. The cloud it not some kind of magical realm, it's a physical machine made out of many computers. The fact that some companies treat it as external storage does little to detract from the fact that the data is still stored on platters and chips.

I think perhaps what was intended is that any storage space you access over the internet is going to be limited by your broadband speeds, which is typically substantially lower than local I/O (unless you only use USB 2.0 drives for storage and have gigabit fiber internet...). Sure, it's stored on physical disks, but you'll never achieve transfer rates as fast as you would if you had those disks plugged into your computer.

Link to comment
Share on other sites

I think perhaps what was intended is that any storage space you access over the internet is going to be limited by your broadband speeds, which is typically substantially lower than local I/O (unless you only use USB 2.0 drives for storage and have gigabit fiber internet...). Sure, it's stored on physical disks, but you'll never achieve transfer rates as fast as you would if you had those disks plugged into your computer.

True, but it just does not belong in the cache>RAM>SSD/HDD hierarchy. If that is the case, we need to add USB storage and other types too, but none of those are intrinsic parts of a system.

Link to comment
Share on other sites

Ramdisk doesn't improve KSP loading time, speaking from someone that have 14 GB RAM. AFAIK there is a program to convert all textures to DXT something before KSP startup to reduce memory consumption and loading time

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...