- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- RAM DRIVE
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 06:38 AM
01-06-2005 06:38 AM
RAM DRIVE
I thought with a sticky bit.
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.
And how much memory would I need?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 06:46 AM
01-06-2005 06:46 AM
Re: RAM DRIVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 06:46 AM
01-06-2005 06:46 AM
Re: RAM DRIVE
1) #Modify your kernel to include the "ram" driver:
1) cd /stand/build
1) /usr/lbin/sysadm/system_prep -v -s system
1) vi /stand/build/system
1) # Edit the system file and add the "ram" driver
or
kmsystem -c y -S /stand/system ram
1) mk_kernel -s system
1) mv /stand/system /stand/system.good
1) cp /stand/vmunix /stand/vmunix.good
1) rm -rf /stand/vmunix/dlkm.good
1) mv /stand/dlkm /stand/dlkm.good
1) mv /stand/build/system /stand/system
1) kmupdate
1) shutdown -y -r 0
2) # set up the device files and mount the ramdisk:
2) # create the device files with major 9 (both b and c),
2) # and minor 0xVSSSSS, where "V" is the volume num,
2) # and "SSSSS" is the number of sectors in the ram
2) # disk, each sector is 256 bytes.
2) mknod /dev/rram1 c 9 0x101000
2) mknod /dev/ram1 b 9 0x101000 # that's 1MB
2) mkfs -F hfs /dev/rram1 # no point in VxFS here
2) mount /dev/ram1 /ramdisk
THIS IS UNSUPPORTED, dangerous, and such...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 06:58 AM
01-06-2005 06:58 AM
Re: RAM DRIVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2005 07:54 PM
01-06-2005 07:54 PM
Re: RAM DRIVE
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.
So fix your buffer cache to more than 2GB (dbc_max_pct), - and dimension the memory accordingly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 01:14 AM
01-07-2005 01:14 AM
Re: RAM DRIVE
http://www.unixguide.net/hp/faq/5.3.2.shtml
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 02:57 AM
01-07-2005 02:57 AM
Re: RAM DRIVE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2005 03:15 AM
01-07-2005 03:15 AM
Re: RAM DRIVE
Of course, running a large buffer cache only makes sense if the box has much larger amounts of memory.
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.