Home forums Makulu LinDoz Chat Speed disk

This topic contains 2 replies, has 3 voices, and was last updated by  raymerjacque 11 months ago.

  • Author
  • #5057

    Max Hughes

    Where can I find info on What to transfer to the speed disk?

  • #5058


    It is basically up to you and what software you use. Usually it will help most for temporary or scratch files, particularly when you do video editing or Picture editing.

  • #5059


    Speed disk just takes a Chunk of your Ram and converts it to a usable Hard drive. this drive is significantly faster and can be used as a cache drive for some apps that have caching features. or it can be used for rendering video files faster or use the ram drive for webserver caching etc etc ….


    Example of how to use a RamDisk for a webserver.

    Okay, here is an example of how to use 3 ramdisks for a webserver. Let us say you are 99% confident that your default installation of Apache for RedHat 6.0 won’t use more than 9 megs for its cgi-scripts, html, and icons. Here is how to install one.
    First, issue this command to move the real copy of the document root directory of your webserver to a different place. Also, make the directories to mount the ramdisks .

    mv /home/httpd/ /home/httpd_real
    mkdir /home/httpd
    mkdir /home/httpd/cgi-bin
    mkdir /home/httpd/html
    mkdir /home/httpd/icons

    Then, add these commands to the start procedure in your /etc/rc.d/init.d/httpd.init (or where ever the httpd gets started on your system):

    	### Make the ramdisk partitions
    /sbin/mkfs -t ext2 /dev/ram0
    /sbin/mkfs -t ext2 /dev/ram1
    /sbin/mkfs -t ext2 /dev/ram2
    	### Mount the ramdisks to their appropriate places
    mount /dev/ram0 /home/httpd/cgi-bin
    mount /dev/ram1 /home/httpd/icons
    mount /dev/ram2 /home/httpd/html
    	### Copying real directory to ramdisks (the
      ### data on the ramdisks is lost after a reboot)
    tar -C /home/httpd_real -c . | tar -C /home/httpd -x
      ### After this you can start the web-server.

You must be logged in to reply to this topic.