DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

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

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 28th September 2008
deathsoul deathsoul is offline
New User
 
Join Date: Jul 2008
Posts: 1
Thanked 0 Times in 0 Posts
Default Hard disk bottle neck

I have this problem for years but couldn't find a way to solve it.

I have a file server handling large files from 1MByte to 1GByte.

Server Info:
FreeBSD 6.2
Apache 2.2.9

DELL PowerEdge 1850
2GB RAM (only 184MB is active)
6x300MB SCSI 10K RPM RAID5
Gigabit Ethernet Connection

My server can output NO MORE than 60Mbps (read only).

The bottle neck is the hard disk. If I use ONE connection to download file from my server, the speed can go up to about 400Mbps.

If I let visitors download using multiple connections, the server cannot output more than 60Mbps.

My service is similar to rapidshare/megaupload, I am wondering how they configure their server?

I know that my apache use FreeBSD sendfile() syscall to handle file transfer. I don't know how sendfile works. But is there a way I can configure the server to read larger block instead of small block.

To my knowledge, it doesn't cost much time to read the data but it does cost a lot of time to seek for the data. Correct me if I am wrong, if I increase the read buffer size, there would be less disk seek (disk access). Let's say the read buffer is 64K, if I increase it to 640K, the disk seek would reduce to 10%.

The problem is how do I increase the read buffer size or it cannot be configure at all?


Any suggestion is appreciated!

Deathsoul
Reply With Quote
  #2   (View Single Post)  
Old 28th September 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,052
Thanked 118 Times in 93 Posts
Default

Add also all this data to lists.freebsd.org mate.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote
Reply

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
mounting NTFS external hard disk. bsdnewbie999 OpenBSD General 16 4th September 2010 01:59 PM
Hard disk reliability ephemera General Hardware 32 20th April 2010 10:17 AM
Formatting Hard Disk Drive to UFS in OS X 10.5 Turquoise88 Other BSD and UNIX/UNIX-like 1 7th March 2009 09:57 PM
Copy VCD film to hard disk mfaridi FreeBSD General 4 5th June 2008 01:57 PM
how to mount external hard disk ? bsdnewbie999 FreeBSD General 6 27th May 2008 02:37 AM


All times are GMT. The time now is 08:09 PM.


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