LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-16-2011, 04:00 AM   #1
smartyshan
LQ Newbie
 
Registered: Jun 2007
Location: Riyadh,KSA
Distribution: Redhat,Ubuntu,Solaris
Posts: 24

Rep: Reputation: 15
RAW devices performance


Dear All,

I am going to install Oracle RAC on two Servers, With shared SAN storage (Servers and Storage is IBM)
OS = RHEL 5u5 x64 bit

And we used multipathing mechanism and created multipathing devices.
i.e. /dev/mapper/mpath1.

Then I created raw device /dev/raw/raw1 of this /dev/mapper/mpath1 Block device as per pre-reqs for Oracle Cluster.

Every thing looks good, But we faced the performance issue as under...

when we run command :
#dd if=/dev/zero of=/dev/mapper/mpath1 bs=1024 count=1000
the writing rate is approx. 34 MB/s

But If we run command
#dd if=/dev/zero of=/dev/raw/raw1 bs=1024 count=1000
the writing rate is very slow like 253 KB/s

Please advice how to tune the performance.
 
Old 02-17-2011, 08:13 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
raw by definition does not buffer - it goes straight to the device. The original block device however buffers so is actually writing to memory then to disk.

Oracle DB (including RAC) doesn't use disk buffering but instead creates an SGA which is its own memory space so will give better performance than you're seeing doing a dd as it works similar to the way disk buffering does.

If this is a new installation you might consider using OCFS2 instead of raw devices. Back when I set up Oracle RAC I went through much of Oracle's documentation and saw it mostly recommended raw/ASM but then after I was all done I found a recommendation at one Oracle link to use OCFS2 instead as raw devices are deprecated in Linux (meaning they may go away in future). We have been running on raw since 2007 but if I'd found that note first I'd have gone with OCFS2. In an earlier RAC environment we had OCFS which was the predecessor to OCFS2 - my reading suggests OCFS2 is much better than OCFS was. You can get OCFS2 from Oracle (OCFS = Oracle Cluster File System).
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raw access to devices RichardS Programming 8 07-19-2007 10:27 AM
what is the different btw raw devices and block devices yenonn Linux - General 2 02-10-2006 09:34 PM
Raw devices gauol Linux - General 2 09-23-2004 02:01 PM
UDEV and Raw devices swissworks Slackware 6 09-14-2004 01:08 PM
Raw Devices rajar11 Linux - Newbie 4 06-16-2004 01:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:38 AM.

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