Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Jan 2003 17:05:43 -0500 (EST)
From:      "Erik Gault" <e@gaultopia.org>
To:        "Alexandr Kovalenko" <never@nevermind.kiev.ua>
Cc:        hubs@freebsd.org
Subject:   Re: partition size, block size, fragment size, inode count for cvsupd
Message-ID:  <30804.152.163.190.1.1042581943.squirrel@www.gaultopia.org>
In-Reply-To: <20030114205109.GA21376@nevermind.kiev.ua>

index | next in thread | previous in thread | raw e-mail

For what it's worth, cvsup2.freebsd.org is set up with two mirror pairs,
one for / and friends and one for all the cvs data (/cvs).  The one thing
I added that made a HUGE difference was ram for the hardware raid
controller (it had 16MB to start).  The filesystem "stuff" (inodes, etc)
is all just the default for a partition of that size.  It appears to have
between 5 and 30 cvsupd's running at any given time (I should probably
take 15 minutes and have it keep a record =), and I have never (though I
would like to) tested the maximum number of connections it can handle
gracefully.   I have not noticed or heard any complaints about its
performance.  It's running only cvsupd (i.e. ftp2 is a different physical
box).  I'm not sure how well raid-0 will serve you, especially if you're
going to do cvs/ftp and www together.  ftp2.freebsd.org is the exact same
configuration, except with a big raid-5 instead of two raid-1s (it runs
stock ftpd and thttpd), traffic graphs are at
http://ftp2.freebsd.org/etc/.  I'd be interested to hear the
configurations used by and experiences of the other mirror operators.

FreeBSD cvsup2.freebsd.org 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #18: Wed
Jan  8 04:02:09 EST 2003    
root@cvsup2.freebsd.org:/usr/obj/usr/src/sys/CVSUP2  i386

CPU: Pentium III/Pentium III Xeon/Celeron (995.68-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x686  Stepping = 6
Features=0x383fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,S
SE>
real memory  = 2147418112 (2097088K bytes)
avail memory = 2088046592 (2039108K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000

cvsup2# ifconfig
ti0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        options=3<rxcsum,txcsum>
        inet 130.94.149.166 netmask 0xfffffffc broadcast 130.94.149.167
        inet6 fe80::260:cfff:fe20:8346%ti0 prefixlen 64 scopeid 0x1
        ether 00:60:cf:20:83:46
        media: Ethernet 1000baseSX <full-duplex>
        status: active

cvsup2# raidutil -L raid
#  b0 b1 b2  Controller     Cache  FW    NVRAM     Serial     Status
---------------------------------------------------------------------------
d0 --        ADAP2100S      112MB  370F  ADPT 1.0  XXXXXXXXXX Optimal

Address       Type              Manufacturer/Model      Capacity  Status
---------------------------------------------------------------------------
d0b0t0d0      RAID 1 (Mirrored) ADAPTEC  RAID-1         70007MB   Optimal
 d0b0t0d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal
 d0b0t1d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal
d0b0t2d0      RAID 1 (Mirrored) ADAPTEC  RAID-1         70007MB   Optimal
 d0b0t2d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal
 d0b0t3d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal

cvsup2# mount
/dev/da0s1a on / (ufs, local)
/dev/da0s1h on /big (ufs, local, noatime, soft-updates)
/dev/da0s1f on /tmp (ufs, local, noatime, soft-updates)
/dev/da0s1g on /usr (ufs, local, soft-updates)
/dev/da0s1e on /var (ufs, local, noatime, soft-updates)
/dev/da1s1e on /cvs (ufs, local, noatime, soft-updates)
procfs on /proc (procfs, local)

cvsup2# cd /cvs
cvsup2# du -h -d1
1.7G    ./ncvs
222M    ./www
378M    ./gnats
909M    ./mail
6.0K    ./cvsupin
2.6M    ./log

cvsup2# disklabel /dev/da1s1e
# /dev/da1s1e:
type: SCSI
disk: da1s1
label:
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 255
sectors/cylinder: 16065
cylinders: 8923
sectors/unit: 143363997
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0

8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  b:  4194304        0      swap                        # (Cyl.    0 - 261*)
  c: 143363997        0    unused        0     0        # (Cyl.    0 - 8923*)
  e: 139169693  4194304    4.2BSD     2048 16384    89  # (Cyl.  261*- 8923*)

##############################################

ftp2# raidutil -L raid
Address       Type              Manufacturer/Model      Capacity  Status
---------------------------------------------------------------------------
d0b0t0d0      RAID 5 (Redundant ADAPTEC  RAID-5         210021MB  Optimal
 d0b0t0d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal
 d0b0t1d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal
 d0b0t2d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal
 d0b0t3d0     Disk Drive (DASD) SEAGATE  ST373405LC     70007MB   Optimal

> I would like to ask an advice, what is your best practice for above
> parameters for ncvs mirror?
>
> I'm setting up new machine for cvs/ftp/www FreeBSD mirror in .ua, so I
> would like to do this in the best way.
>
> P.S. it is 2x120Gb RAID-0 array.
>
> --
> NEVE-RIPE, will build world for food
> Ukrainian FreeBSD User Group
> http://uafug.org.ua/
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-hubs" in the body of the message
>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hubs" in the body of the message



help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30804.152.163.190.1.1042581943.squirrel>