🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #41468

Re: Cycbuff creation on software RAID problem?

#41468
From: Andrew Gierth
Date: Wed, 10 Nov 1999 00:00
35 lines
2401 bytes
[Bogus "Distribution: inet" removed.]

>>>>> "Mark" == Mark Hittinger <bugs@netcom19.netcom.com> writes:

 Mark> If you try to use the raw device (rdsk) it won't work because
 Mark> the drivers seem to want you to do largefile I/O in 512 byte
 Mark> chunks.  It won't do a 192 byte read on the rpx structure for
 Mark> example, the 192 byte read fails, but the 512 byte read works,
 Mark> and goes out to 64 bit lseek.  SO we could re-write the
 Mark> storageapi to always do block style i/o if largefile mode is on
 Mark> in order to appease ods or veritas :-)

There's a lot more to efficient use of raw disks (i.e. character
devices, as opposed to block devices which are relatively
straightforward) than merely getting the blocksize right. (And it has
always been the case that I/O on raw devices must conform to the
alignment requirements of the hardware.)

Reads and writes to raw disk devices are uncached, which will probably
cost you far more in performance terms than you could ever hope to
gain from them. They rarely make sense except for things like database
engines that are prepared to do their own large-scale caching and use
either AIO or multithreaded writes.

 Mark> Anyway you can also initialize a file system on the array and
 Mark> then dd /dev/zero onto a big file on the array.  This works (so
 Mark> far).  I'm expecting some things to fail, but so far so good
 Mark> (this is with inn2.3-current btw).

This is probably the correct approach.

-- 
Andrew.

Technical Details
Message-ID: <879046c4k4.fsf@erlenstar.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <3829BDC7.9A4DA714@ust.hk> <80cnja$14c$1@nntp9.atl.mindspring.net>

Show Full Headers
Complete Article Headers
Message-ID: <879046c4k4.fsf@erlenstar.demon.co.uk>
Subject: Re: Cycbuff creation on software RAID problem?
Date: Wed, 10 Nov 1999 00:00:00 +0000
From: Andrew Gierth <andrew@erlenstar.demon.co.uk>
References: <3829BDC7.9A4DA714@ust.hk> <80cnja$14c$1@nntp9.atl.mindspring.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 547110598
X-Mayan-Date: Long count = 12.19.6.12.8; tzolkin = 9 Lamat; haab = 16 Zac
X-Complaints-To: andrew@erlenstar.demon.co.uk
Organization: disorganised
X-Attribution: AG
X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29
X-P-Persistent-Headers: are a bad idea.
Newsgroups: news.software.nntp
X-Post-Filter: postfilter v0.6 alpha