Linux - ServerThis 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.
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.
I would setup soon a mysql server+php+apache, this server will run inside a vm with xen.
Normally mysql run inside /var, this vm will have:
8GB RAM
64GB for this vm.
The host will have Raid-10 with md.
My question is, is better(disk speed) to setup this vm using the default layout lvm:
Code:
/
swap
Or LVM+ext4 with manual layout:
Code:
/
swap
var
usr
tmp
Or no LVM and manual setup ext4:
Code:
/
swap
var
usr
tmp
I meant disk speed, using this layouts do I have to receive better performance using one of this layouts, I know that I have to check my self, hw, etc, but my point is, which one is better for a DB server with a lot of writes and reads or doesn't matter if I use LVM or not LVM with manual or auto partitions.
In a VM, with an apparently I/O intensive application - no. I'd definitely recommend a simple filesystem.
What kind of performance hit have you seen using logical volumes inside of a virtual machine? I haven't worked on a lot of database servers so I could be wrong.
So this really made me curious. I ran bonnie++ in two virtual machines, one used logical volumes and one just used a filesystem and regular partitioning. Here's the results.
The first section (top portion of each test) is what we're interested in when talking about database performance, and the import part of that section is the block read/write section. The VM using logical volumes seemed to actually perform a little better, surprisingly. The VM using logical volumes had a block write speed of 43.9/MBs while the VM not using logical volumes had a block write speed of 40.4/MBs. With regards to block reads, the VM using logical volumes had a block read speed of 340/MBs while the VM not using logical volumes had a block read speed of 338/MBs.
So it seems that the difference is negligible, but when you take into account the convenience of logical volumes I'd go that route. If anyone has any input and conflicting opinions or tests I'd love to see it.
So this really made me curious. I ran bonnie++ in two virtual machines, one used logical volumes and one just used a filesystem and regular partitioning. Here's the results.
Thanks for sharing
Could the difference be explained by physical location on disk? Tracks located toward the outside of the platters would perform better than tracks nearer the centre.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.