Ask a Question related to Sun Solaris, Design and Development.
-
Jan Andres #1
Re: raw vs. ufs comparison
Hi there!
someone wrote:
It does. When using the raw device, any I/O is done synchronously. When> Did some quick tests of raw vs. ufs ... both under SDS 4.2.1 on Solaris8
> ... but it is turning out that ufs is faster. Does this seem reasonable ?
using UFS, only metadata is written synchronously. For your "dd" example,
the latter is surely more performant.
The usual application of raw devices (or the "forcedirectio" flag) however
is DBMSes, which do their own caching and perform any disk I/O with the
O_SYNC flag. In that case raw devices win, because data doesn't need to be
copied from one memory region to another (from application memory to cache),
and is instead written directly from user space memory to disk.
The OS'es caching mechanisms mainly just increase I/O overhead if you're
running a DBMS.
--
Jan Andres
Jan Andres Guest
-
Comparison using mysql
Can i use the "LIKE" operator on a date in mysql? I want to compare the information by the different months Thanks Wesley -
Resultset Comparison
Hi, I have two resultsets from 2 different datasource. Say DSN1 and DSN2. I need to Compare and display if this condition is... -
Comparison of unices
Hi I'm thinking of pushing my CV out to a few recruitment agencys I'm looking for a source describing the differences between the major unices... -
ASP comparison question...
hi guys, I am doing this here: dim i dim j i = 10 j = 10 -
Mac - PC Comparison
How does a Mac G3 333mhz compare to a 800 mhz P3 PC? -
Anthony Mandic #2
Re: raw vs. ufs comparison
Jan Andres wrote:
Is that right? Guess the aiowrite man page must be wrong then.>> > Did some quick tests of raw vs. ufs ... both under SDS 4.2.1 on Solaris8
> > ... but it is turning out that ufs is faster. Does this seem reasonable ?
> It does. When using the raw device, any I/O is done synchronously.
The O_SYNC flag with raw devices. Amazing!> The usual application of raw devices (or the "forcedirectio" flag) however
> is DBMSes, which do their own caching and perform any disk I/O with the
> O_SYNC flag.
And that makes it faster? I didn't realise memory copies are> In that case raw devices win, because data doesn't need to be
> copied from one memory region to another (from application memory to cache),
> and is instead written directly from user space memory to disk.
so slow.
-am © 2003
Anthony Mandic Guest
-
Akop Pogosian #3
Re: raw vs. ufs comparison
noone <noone@noone.org> wrote:
Have you installed the latest SDS 4.2.1 patch (108693 on SPARC)? I> Did some quick tests of raw vs. ufs ... both under SDS 4.2.1 on Solaris8
> ... but it is turning out that ufs is faster. Does this seem reasonable ?
remember, the SDS 4.2.1 without this patch had some serious
performance problems when accessing the raw metadevices under certain
configurations.
-akop
Akop Pogosian Guest
-
Richard L. Hamilton #4
Re: raw vs. ufs comparison
In article <beun6d$rek$1@lust.ihug.co.nz>,
jmsalvo <jmsalvo@yahoo.com.au> writes:Along those lines, there's also>
> A much better tool to do the raw vs. ufs should be dt ( similar to dd ),
> with support for async i/o:
>
> [url]http://www.bit-net.com/~rmiller/dt.html[/url]
>
> However, the PDF manual says that aio support in the program is only
> built-in for Tru64.
>
> Anyone tried it on Solaris ?
[url]ftp://ftp.lysator.liu.se/pub/unix/pcopy/pcopy-1.3.tar.gz[/url], a threaded
copy program (although I suppose asyncio could be faster than threads,
pthreads are arguably more widely available). It might be interesting
if someone with large enough amounts of disk space to for significant
results timed some of the various copy programs out there.
--
mailto:rlhamil@mindwarp.smart.net [url]http://www.smart.net/~rlhamil[/url]
Richard L. Hamilton Guest
-
John Salvo #5
Re: raw vs. ufs comparison
Richard L. Hamilton wrote:
Interesting ... but I really wanted to test async I/O on raw vs. async> In article <beun6d$rek$1@lust.ihug.co.nz>,
> jmsalvo <jmsalvo@yahoo.com.au> writes:
>>>>A much better tool to do the raw vs. ufs should be dt ( similar to dd ),
>>with support for async i/o:
>>
>>[url]http://www.bit-net.com/~rmiller/dt.html[/url]
>>
>>However, the PDF manual says that aio support in the program is only
>>built-in for Tru64.
>>
>>Anyone tried it on Solaris ?
>
> Along those lines, there's also
> [url]ftp://ftp.lysator.liu.se/pub/unix/pcopy/pcopy-1.3.tar.gz[/url], a threaded
> copy program (although I suppose asyncio could be faster than threads,
> pthreads are arguably more widely available). It might be interesting
> if someone with large enough amounts of disk space to for significant
> results timed some of the various copy programs out there.
>
I/O with concurrent direct I/O on UFS.
The dt program from Robert Miller that I mentioned above does not link
against the aio library.
John Salvo Guest
-
Richard L. Hamilton #6
Re: raw vs. ufs comparison
In article <Am0Ra.5927$wU5.3080@news-server.bigpond.net.au>,
John Salvo <jmsalvo@yahoo.com.au> writes:[...]> Richard L. Hamilton wrote:>> In article <beun6d$rek$1@lust.ihug.co.nz>,
>> jmsalvo <jmsalvo@yahoo.com.au> writes:
>>>>>>>A much better tool to do the raw vs. ufs should be dt ( similar to dd ),
>>>with support for async i/o:
>>>
>>>[url]http://www.bit-net.com/~rmiller/dt.html[/url]
>>>
>>>However, the PDF manual says that aio support in the program is only
>>>built-in for Tru64.
>>>
>>>Anyone tried it on Solaris ?Well, it wouldn't directly, even if it were set up to do AIO on Solaris,> The dt program from Robert Miller that I mentioned above does not link
> against the aio library.
it would link against -lrt, which would pull in libaio because the librt
POSIX aio functions are implemented in terms of libaio on Solaris.
If you add dtaio.c to CFILES, -lrt to EXTLIBS, and -DAIO to CFLAGS
in Makefile.solaris, it should compile with the AIO functionality enabled
on Solaris 8 (it did for me). No idea whether it will actually _work_ or
not, I leave that up to you. :-)
--
mailto:rlhamil@mindwarp.smart.net [url]http://www.smart.net/~rlhamil[/url]
Richard L. Hamilton Guest



Reply With Quote

