LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-21-2010, 05:24 PM   #1
mudasar
LQ Newbie
 
Registered: Oct 2005
Location: Pakistan
Posts: 5

Rep: Reputation: 0
Ramdisk


Hi,

I am using opennms on a 64 bit centos5 machine, its postgres installed separate file system, when i start opennms and postgres its load avrage goes to abmormal and mechine responce is too slow. and its iostats show 100%

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
sda2 0.00 153.40 244.40 106.40 3131.20 2001.60 14.63 119.35 323.82 2.85 100.02

To double check it have setup a 16 GB ram disk and move the database data on it but still its var shows 100%

Have some body any idea how ramdisk is work or i am missing any thing, following is the ram disk configuration

#mkfs -q /dev/ram1 15728640
#mount /dev/ram1 /mnt/rd

# pwd
/var/lib
#mv pgsql /mnt/rd/
#ln -s /mnt/rd/pgsql ./


Thanks
Mudasar
 
Old 07-22-2010, 09:52 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
You are going to lose your pgsql db if you mv it to RAM.
I'm using much simplier "mount -t tmpfs" (man mount), but does your /dev/ram1 is 16GB? How much memory do you have on that system and how large is your DB? I'm curious how bad can it be configured so that such huge HW resources won't let it work ^_^
In fact I thought /dev/ram* is not for that purpose.
 
Old 07-22-2010, 11:54 AM   #3
mudasar
LQ Newbie
 
Registered: Oct 2005
Location: Pakistan
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks,

This machine has 32Gb memory, yes i know data will be lost if i reboot the machine..... but i use it as the last possibility.
DB is around about 200MB.
When postgres is stopped var i/o utilization is 0%, as i start the postgres its i/o utilization goes to 100%, I am surprised that even i have move the complete postgres directory to ramdisk why var i/o utilization is 100%.


Mudasar
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
RAMDISK: couldn't find valid ramdisk image starting at 0. iotc247 Slackware 10 12-10-2010 03:08 PM
ramdisk culin Linux - General 5 09-24-2006 10:21 PM
creating a ramdisk runtime from another ramdisk code123 Linux From Scratch 0 10-11-2004 08:59 AM
Ramdisk wburquhart Linux - Hardware 1 12-22-2003 02:18 PM
ramdisk clu Slackware 0 05-08-2003 02:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration