Operating System - HP-UX
1820378 Members
3067 Online
109623 Solutions
New Discussion юеВ

Swap using non-lvm type disk

 
Smucker
Regular Advisor

Swap using non-lvm type disk

Reading the man page for swapon talks about using any block type device for swap. Leading me to think that a whole disk (san disk) could be used for swap instead of using a standard lvm disk.

I therefore masked/mapped an 8gb disk to the server in need of swap and swapped-on the disk using the block device and it took it.

My question is simple - using swap space in whole disks rather than LVM disk should give better performance due to the LVM layer being removed ... True?

What do the experts think?
3 REPLIES 3
Torsten.
Acclaimed Contributor

Re: Swap using non-lvm type disk

I don't think so, because LVM does not add noticeable overhead.

this idea came from your linux experiences, right?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
melvyn burnard
Honored Contributor

Re: Swap using non-lvm type disk

I disagree. When you define a device for swap you use the CHARACTER device, to remove any overhead that may be induced by using the block device.
The onlyu time swap will really impose any great overhead is if you were to use file system swap, and that can REALLY give a performance hit.

Also, the LVM overhead is so small in reality it would also make little difference

Just my experience


My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Tim Nelson
Honored Contributor

Re: Swap using non-lvm type disk

My answer is around the same as Mels.

Once you start swapping/deactivating processes the system performance is so bad that who cares. Having a little faster disk access is miniscule in regards to the performance hit of swapping in the first place.

Never swap...never have time spent worrying about it.