<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: RAM DRIVE in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457233#M209563</link>
    <description>The buffer cache is your friend :)&lt;BR /&gt;&lt;BR /&gt;Ramdisk is less performant than buffercache, because access of a filesystem on a ramdisk make a lot of useless memory copy -which are made by the CPU-. Moreover it is not supported.&lt;BR /&gt;&lt;BR /&gt;So fix your buffer cache to more than 2GB (dbc_max_pct), - and dimension the memory accordingly&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 07 Jan 2005 03:54:20 GMT</pubDate>
    <dc:creator>Laurent Menase</dc:creator>
    <dc:date>2005-01-07T03:54:20Z</dc:date>
    <item>
      <title>RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457229#M209559</link>
      <description>Is there a way to keep a file in memory?&lt;BR /&gt;I thought with a sticky bit.&lt;BR /&gt;I have a 2GB file that is read over and over all day long and I'd like to keep it in memory with ocasional flush to disk.&lt;BR /&gt;And how much memory would I need?</description>
      <pubDate>Thu, 06 Jan 2005 14:38:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457229#M209559</guid>
      <dc:creator>Larry Basford</dc:creator>
      <dc:date>2005-01-06T14:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457230#M209560</link>
      <description>The sticky-bit has no effect on data files. On executables on most UNIX flavors, it kept the file in memory (or swap) for rapid loading. Let's see a 2GB file would require (using extremely complex math) 2GB of memory. The ideal approach for what you are trying to do is a memory-mapped file but the application has to do that. Man mmap for details. There are unsupported methods to create a memory-based filesystem but your best bet is to probably increase the buffer-cache and let the OS decide how much of this file should be kept in memory.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jan 2005 14:46:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457230#M209560</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-06T14:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457231#M209561</link>
      <description>0) # create a "make_tape_recovery" tape for your box!  &lt;BR /&gt;&lt;BR /&gt;1) #Modify your kernel to include the "ram" driver:&lt;BR /&gt;&lt;BR /&gt;1) cd /stand/build&lt;BR /&gt;&lt;BR /&gt;1) /usr/lbin/sysadm/system_prep -v -s system&lt;BR /&gt;&lt;BR /&gt;1) vi /stand/build/system&lt;BR /&gt;&lt;BR /&gt;1) # Edit the system file and add the "ram" driver&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;kmsystem -c y -S /stand/system ram &lt;BR /&gt;&lt;BR /&gt;1) mk_kernel -s system&lt;BR /&gt;&lt;BR /&gt;1) mv /stand/system /stand/system.good&lt;BR /&gt;&lt;BR /&gt;1) cp /stand/vmunix /stand/vmunix.good&lt;BR /&gt;&lt;BR /&gt;1) rm -rf /stand/vmunix/dlkm.good&lt;BR /&gt;&lt;BR /&gt;1) mv /stand/dlkm /stand/dlkm.good&lt;BR /&gt;&lt;BR /&gt;1) mv /stand/build/system /stand/system&lt;BR /&gt;&lt;BR /&gt;1) kmupdate&lt;BR /&gt;&lt;BR /&gt;1) shutdown -y -r 0  &lt;BR /&gt;&lt;BR /&gt;2) # set up the device files and mount the ramdisk:&lt;BR /&gt;&lt;BR /&gt;2) # create the device files with major 9 (both b and c),&lt;BR /&gt;&lt;BR /&gt;2) # and minor 0xVSSSSS, where "V" is the volume num,&lt;BR /&gt;&lt;BR /&gt;2) # and "SSSSS" is the number of sectors in the ram&lt;BR /&gt;&lt;BR /&gt;2) # disk, each sector is 256 bytes.&lt;BR /&gt;&lt;BR /&gt;2) mknod /dev/rram1 c 9 0x101000&lt;BR /&gt;&lt;BR /&gt;2) mknod /dev/ram1 b 9 0x101000 # that's 1MB&lt;BR /&gt;&lt;BR /&gt;2) mkfs -F hfs /dev/rram1 # no point in VxFS here&lt;BR /&gt;&lt;BR /&gt;2) mount /dev/ram1 /ramdisk  &lt;BR /&gt;&lt;BR /&gt;THIS IS UNSUPPORTED, dangerous, and such...  &lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jan 2005 14:46:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457231#M209561</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2005-01-06T14:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457232#M209562</link>
      <description>I should add that one practical, supported method approach that does not require modifications to the code is the use of a Solid State Disk. These consist of battery backed memory that may save to built-in magnetic drives. They are very, very fast and appear to your box as simply another SCSI disk --- but they ain't cheap. One of your modest requirements wouldn't be all that expensive. If you really need high performance for a few heavily used files this is the way to go. Of course, you could achieve very similar results by housing the file on a cache-centric array.&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Jan 2005 14:58:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457232#M209562</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-06T14:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457233#M209563</link>
      <description>The buffer cache is your friend :)&lt;BR /&gt;&lt;BR /&gt;Ramdisk is less performant than buffercache, because access of a filesystem on a ramdisk make a lot of useless memory copy -which are made by the CPU-. Moreover it is not supported.&lt;BR /&gt;&lt;BR /&gt;So fix your buffer cache to more than 2GB (dbc_max_pct), - and dimension the memory accordingly&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jan 2005 03:54:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457233#M209563</guid>
      <dc:creator>Laurent Menase</dc:creator>
      <dc:date>2005-01-07T03:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457234#M209564</link>
      <description>FYI,&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.unixguide.net/hp/faq/5.3.2.shtml" target="_blank"&gt;http://www.unixguide.net/hp/faq/5.3.2.shtml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;In the third case, there is third party support, and they can mirror it to disk, so that reads are very fast, but writes are posted to disk.</description>
      <pubDate>Fri, 07 Jan 2005 09:14:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457234#M209564</guid>
      <dc:creator>Ted Buis</dc:creator>
      <dc:date>2005-01-07T09:14:00Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457235#M209565</link>
      <description>Do you know of anybody running a high buffer cache like 4GB?</description>
      <pubDate>Fri, 07 Jan 2005 10:57:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457235#M209565</guid>
      <dc:creator>Larry Basford</dc:creator>
      <dc:date>2005-01-07T10:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: RAM DRIVE</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457236#M209566</link>
      <description>I've setup boxes that are essentially NFS servers with very large buffer caches and they work well although the largest I've used is about 3GB. If this is 11.11 then it is better with large buffer caches than 11.0.&lt;BR /&gt;Of course, running a large buffer cache only makes sense if the box has much larger amounts of memory.&lt;BR /&gt;&lt;BR /&gt;It would probably help if you better explained what this 2GB file does because I suspect that much (almost all) of it does not change between sucessive runs. It sounds as though more efficient algorithms would exceed by many orders of magnitudes your attempt at a band-aid solution.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Jan 2005 11:15:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/ram-drive/m-p/3457236#M209566</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2005-01-07T11:15:38Z</dc:date>
    </item>
  </channel>
</rss>

