[KLUG Members] LVM and squid

Adam Tauno Williams adam at morrison-ind.com
Wed Mar 2 10:15:49 EST 2005


> I'm configuring a squid box for a rather large install. I have a
> separate 72 GB drive to use for caching and logging. I'm thinking of
> using LVM to manage the space on this new drive. Start out with a
> smaller a cache and grow it if I need to. Same thing with logs. Is there
> any reason not to use LVM for this? 

No, there is never a reason not to use LVM.  Linux is one of the very
few operating systems where you have an option not to use LVM (it is
just part of WinY2k, AIX, etc...)

> Or am I better off just creating big partitions to start with? 

I find bigger partitions to be faster when allocating space,  although
if you use an XFS filesystem this is somewhat mitigated.

> This box will service a lot of users (>3,000
> surfing clients), so performance is definitely a factor. Thanks in
> advance for any pointers.

Don't forget to set noatime on your logging and cache filesystems, and
disable fsync() for syslog.  Those simple tweaks will give you more bang
than anything else.  Might also help to try fiddling with FIN ACK wait
times if you see netstat -ap getting really really long waiting for IE
to drop connections.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://www.kalamazoolinux.org/pipermail/members/attachments/20050302/ab25939e/attachment-0001.bin


More information about the Members mailing list