DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 17th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default FreeBSD + Disk speed

I got IDE disk (160G) and SATA150(250G) disk
Currently:
FreeBSD is on SATA disk
Torrents are downloaded to SATA disk
Files are archived on IDE disk...

I'm wondering if this setup would be better in terms of performance:
FreeBSD on IDE
Files archived on IDE
Torrents are downloaded to SATA
/usr/ports on SATA (optional)
/usr/src on SATA (optional)
/tmp on SATA (optional)

I use my pc for desktop.
I download torrents a lot (at high speed)...
and i think once FreeBSD is loaded disk usage for it is very minimal
That;s why i'm thinking if putting FreeBSD on slower disk, and running most things that needs speed on faster disk would increase performance...

Bough disks are and will be encrypted


Code:
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/ad4s1a        496M     51M    405M    11%    /
devfs              1.0K    1.0K      0B   100%    /dev
/dev/ad4s2.elig    5.9G    449M    5.0G     8%    /home
/dev/ad4s2.elif     12G     32K     11G     0%    /tmp
/dev/ad4s2.elid    9.8G    3.6G    5.5G    40%    /usr
/dev/ad4s2.elie    1.0G    150M    777M    16%    /var
/dev/ad4s3.elid    200G     48G    136G    26%    /home/Files
/dev/ad0s1d.eli    146G     64G     71G    48%    /home/Archive
ad4 is SATA
ad0 is IDE
atm
Reply With Quote
  #2   (View Single Post)  
Old 18th November 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

I'd put FreeBSD on ad0 for sure. /, /usr, /usr/local, /var at least. Put a swap partition on both, so the kernel stripes swap access across them both.

Then put /home on ad4.

That way, OS activity happens on one disk, and user activity happens on the other.
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #3   (View Single Post)  
Old 18th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

I've read your replay, when i already set up my system.

ok, this is what i did.
Code:
/dev/ad0s1.elia    496M     51M    405M    11%    /
devfs              1.0K    1.0K      0B   100%    /dev
/dev/ad0s1.elid    496M    113M    343M    25%    /var
/dev/ad0s1.elie    6.8G    2.2G    4.0G    36%    /usr
/dev/ad0s3.elid    9.7G    3.9G    5.0G    44%    /home
/dev/ad4s1.elid     14G     82K     12G     0%    /tmp
/dev/ad0s4.elid    126G     47G     69G    40%    /home/Archive
/dev/ad4s4.elid    206G     13G    176G     7%    /home/Files
/dev/ad4s3.elid    2.9G    476M    2.2G    17%    /usr/src
/dev/ad4s3.elie    2.9G    477M    2.2G    17%    /usr/ports
swap on bough disk 512M each
ram 2G
i separated /usr/src and /usr/ports from usr because:
1) i don't want them to be dumped
2) ports are being updated frequently
3) i believe it'll increase performance when i compile them

home isn't used much so i left it on slower disk.
All files that are accessed most of times are in /home/Files (on SATA), here i download stuff
and /home/Archive (on ide) where i keep photos and music and listening to music ain't the same as downloading torrents from local tracker (very good speed)

also system is backed to /home/Files (SATA)

i will probably cp 1 backup to /home/Archive once in while (just to be sure)

Everything is encrypted....
Now the only thing i did wrong is i set Soft updates for /root (by accident)
and now i can\t figure how to reset, that without ruing everything...
i boot from flash...

i guess, i need to make minimal usb pendrive bootable fbsd


EDIT:
I think this new setup is way better than my old one

Last edited by graudeejs; 18th November 2008 at 09:10 PM.
Reply With Quote
  #4   (View Single Post)  
Old 18th November 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

You should launch gstat while running performance problems and you will know which partitions are used mostly.
__________________
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
  #5   (View Single Post)  
Old 18th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Code:
dT: 1.005s  w: 1.000s
 L(q)  ops/s    r/s   kBps   ms/r    w/s   kBps   ms/w   %busy Name
    1    285    285   1312    1.0      0      0    0.0   14.4| ad0
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2
    1    285    285   1312    1.0      0      0    0.0   14.5| ad0s3
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s4
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2b.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s2b.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2b
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s2c
    2    284    284   1306    1.3      0      0    0.0   16.6| ad0s3.eli
    0      0      0      0    0.0      0      0    0.0    0.0| acd0
    0     64      0      0    0.0     64   2707    2.3    8.6| ad4
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1.elia
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1.elic
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1.elid
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s1.elie
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s4.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s4.elic
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s4.elid
    0     64      0      0    0.0     64   2707    4.9   20.5| ad4s4.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad0s3.elic
    2    284    284   1306    1.4      0      0    0.0   16.7| ad0s3.elid
    0      0      0      0    0.0      0      0    0.0    0.0| da0
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s1
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s2
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s3
    0     64      0      0    0.0     64   2707    2.3    8.8| ad4s4
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s4.elic
    0     64      0      0    0.0     64   2707    4.9   20.7| ad4s4.elid
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s3.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s3.elic
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s3.elid
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s3.elie
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s1.eli
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s2b
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s2c
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s1.elic
    0      0      0      0    0.0      0      0    0.0    0.0| ad4s1.elid
atm, i'm downloading 700M file to SATA, backing & compressing system from IDE to SATA, copying files form usb pen to SATA
Reply With Quote
  #6   (View Single Post)  
Old 19th November 2008
phoenix's Avatar
phoenix phoenix is offline
Risen from the ashes
 
Join Date: May 2008
Posts: 699
Thanked 90 Times in 81 Posts
Default

Quote:
Originally Posted by killasmurf86 View Post
Now the only thing i did wrong is i set Soft updates for /root (by accident)
and now i can\t figure how to reset, that without ruing everything...
i boot from flash...
tunefs(8)
__________________
Freddie

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
Reply With Quote
  #7   (View Single Post)  
Old 19th November 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

@killasmurf86

You may also check GJurnal, it seems to get better performance with multiple transfers then SoftUpdates.
__________________
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
  #8   (View Single Post)  
Old 19th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Quote:
Originally Posted by phoenix View Post
Ye, i know, but it ain't that easy.
I fixed it yesterday.


I wasn't able to use tunefs on root.
So i made another bootable usb-pendrive with custom kernel.
and using it i attached encrypted root and turned of soft updates.
Reply With Quote
  #9   (View Single Post)  
Old 19th November 2008
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
formerly killasmurf86
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 588
Thanked 29 Times in 26 Posts
Default

Quote:
Originally Posted by vermaden View Post
@killasmurf86

You may also check GJurnal, it seems to get better performance with multiple transfers then SoftUpdates.
I tried using GJurnal, but .... it complained, that there is no journal...
What does this mean?


also, i would appreciate if we could solve this problem


When i download torrents with good speed, BSD freezes for few tenths of seconds....
I would love to find way to avoid this (without buying new, better hardware. and i know i can limit upload/download speed)

The speed that shows rtorrent, is not maximum, that i can get
Sometimes i can get up to 13000KB (as rtorrent shows, what it means KB/s, or Kb/s?)

rtorrent uses a lot of CPU% while downloading


EDIT: this is not disk encryption issue, i had it before i encrypted my drives

Last edited by graudeejs; 19th November 2008 at 09:34 PM.
Reply With Quote
Old 19th November 2008
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,051
Thanked 118 Times in 93 Posts
Default

Have checked this:
http://freebsd.org/handbook/geom-gjournal.html
__________________
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
About the FreeBSD mall disk set haemulon FreeBSD General 2 10th February 2009 07:39 PM
speed pkg_add netbsd vs. freebsd kasse NetBSD General 3 23rd November 2008 07:52 PM
Disk geometry for Seagate disk phreud FreeBSD Installation and Upgrading 5 8th November 2008 10:51 PM
FreeBSD 7.0 hangs with USB disk drive. map7 FreeBSD General 7 9th August 2008 03:02 AM
Dual-booting WinXP, FreeBSD; unlikely disk geometry ronaldmcdonald9 FreeBSD Installation and Upgrading 6 11th July 2008 06:10 PM


All times are GMT. The time now is 11:10 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