Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1   (View Single Post)  
Old 14th November 2009
replaysMike replaysMike is offline
New User
Join Date: Nov 2009
Posts: 2
Default ZFS Performance monitoring

Probably not the best title for my thread but here it goes...

I've gone and built a ZFS web server to stream videos using lighttpd, and I seem to be hitting some performance bottlenecks but I'm not quite sure where to look. I can't seem to get more than 300mbits out of the box, and I think it should be able to handle quite a bit more. There are 14 SATA drives + 2 flash drives (for cache) setup as a single pool, mirrored in pairs.

Here's what the box is up to right now:

vmstat -l output: 
tx: 32330.48 KiB/s  12000 p/s
zpool iostat -v output:
operations         bandwidth
read    write     read   write
------ ------  ------ -------
2.16K   14       269M   63.6K

1.2K     2        127M    512K
netstat -na | grep ESTABLISHED | wc -l = 22236
kern.openfiles = 48790
Now, obviously I'm servicing an assload of connections. Lighttpd is configured to use 500 processes with 100 connections each, which is a ridiculous amount I know but the box stays responsive in processing new connections. I would imagine the drive system is random reading like a muthafucker (excuse my language ), but I don't know how to get stats on that. top output indicates most lighttpd processes are in "zfs" or "zio" state. Obviously since Im streaming video, each connection will be long running and always in a read state. I'm thinking my bottleneck here is read io/s per second, not thruput. Caching on the flash drives doesn't seem to be used as heavy as I thought it would. Load averages on this box are running 35 35 35 or higher.

This box is obviously heavily loaded, but I can't quite pinpoint what is being hit the hardest. Me thinks I've maxed out the io system - the number of connections served must be taxing the crap out of it from random read requests. Am I correct and what is the best way to determine this?

Thanks! (hey phoenix, this is a vancouver project - you available for a consult?)

Last edited by Carpetsmoker; 14th November 2009 at 10:23 PM. Reason: Added code tags
Reply With Quote

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
System Monitoring Tools IronForge OpenBSD Packages and Ports 4 29th October 2009 03:18 AM
question with monitoring Statistics badguy OpenBSD General 4 20th October 2009 02:11 AM
How to: DMESG Monitoring damien-NF FreeBSD Installation and Upgrading 2 4th August 2009 11:30 PM
Bad ftp performance Randux NetBSD Package System (pkgsrc) 2 4th January 2009 09:17 PM
pf NAT monitoring cerulean FreeBSD General 1 20th October 2008 12:27 PM

All times are GMT. The time now is 02:57 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick