Re: freebsd-questions Digest, Vol 284, Issue 11

2009-11-15 Thread James Phillips

 Date: Sat, 14 Nov 2009 20:29:59 -0600
 From: CyberLeo Kitsana cyber...@cyberleo.net
 Subject: [FreeBSD Questions] Filesystem image as root
 To: FreeBSD Questions freebsd-questions@freebsd.org
 Cc: CyberLeo cyber...@cyberleo.net
 Message-ID: 4aff67a7.6040...@cyberleo.net
 Content-Type: text/plain; charset=ISO-8859-1
 
 I have been thinking and experimenting for weeks, but I
 cannot figure
 this out.
 
 I have an Intel SS4200 NAS that I wish to use as a ZFS NAS
 with FreeBSD 8.0.
 
 The device has 4 SATA bays, and I don't want to use one for
 a UFS root disk.
 
 I don't want to use up hundreds of megabytes of RAM
 preloading an
 mfsroot that can never shrink.
 
 The single IDE connector is accessible via the legacy ISA
 ports, and is
 thus limited to PIO modes (about 1.6MB/sec max, even with
 an actual hard
 drive instead of a CF card).

You are off by an order of magnitude (base 2 or 10):
Pio mode 0 is ~3.3 MB/s
Pio mode 4 is ~16.7 MB/s

http://www.pcguide.com/ref/hdd/if/ide/modesPIO-c.html

You can probably set PIO mode 4 for with:
# atacontrol mode ad0 PIO4

I am currently using ~ 159MB on my root partition,

At 16.7MB/s that is a 10 second load time; and as you said, frequently used 
files will be cached. (I have a CF card that has 15MB/s symmetric read/write. 
Don't know how special it is.)

With a CF card there should be no seek delay of ~ 10 ms (for reads anyway, 
deleting blocks probably takes 10ms).

Regards,

James Phillips

SNIPPED pivot_root attempt I can't help with.
My summary: maybe you are trying too hard :)



  __
Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
favourite sites. Download it now
http://ca.toolbar.yahoo.com.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: freebsd-questions Digest, Vol 284, Issue 11

2009-11-15 Thread CyberLeo Kitsana
James Phillips wrote:
 Date: Sat, 14 Nov 2009 20:29:59 -0600
 From: CyberLeo Kitsana cyber...@cyberleo.net
 Subject: [FreeBSD Questions] Filesystem image as root

 The single IDE connector is accessible via the legacy ISA
 ports, and is
 thus limited to PIO modes (about 1.6MB/sec max, even with
 an actual hard
 drive instead of a CF card).
 
 You are off by an order of magnitude (base 2 or 10):
 Pio mode 0 is ~3.3 MB/s
 Pio mode 4 is ~16.7 MB/s
 
 http://www.pcguide.com/ref/hdd/if/ide/modesPIO-c.html
 
 You can probably set PIO mode 4 for with:
 # atacontrol mode ad0 PIO4

If only that were true in this case.

(85eef1f3)[r...@ss4200 ~]# atacontrol mode ad0 PIO4
current mode = PIO2
(85eef1f3)[r...@ss4200 ~]# atacontrol mode ad0 PIO4
current mode = PIO2
(85eef1f3)[r...@ss4200 ~]# dd if=/dev/ad0 of=/dev/null bs=4096 count=4096
4096+0 records in
4096+0 records out
16777216 bytes transferred in 10.111748 secs (1659181 bytes/sec)

Nothing I've tried seems to boost the throughput, hence the desire to
use a compressed cached filesystem image.

Thanks for the suggestions, though!

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org