Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-16-2011, 04:00 AM
|
#1
|
LQ Newbie
Registered: Jun 2007
Location: Riyadh,KSA
Distribution: Redhat,Ubuntu,Solaris
Posts: 24
Rep:
|
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.
|
|
|
02-17-2011, 08:13 AM
|
#2
|
LQ Guru
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
|
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).
|
|
|
All times are GMT -5. The time now is 02:38 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|