(OLDER) <- More Stuff -> (NEWER) (NEWEST)
Printer Friendly Version



Best of the Newsgroups: slow sort SCO OSR6

Main Index

This is an ancient post with no relevance to modern systems.

From: Bela Lubkin <filbo@armory.com>
Subject: Re: xenix 386 sort fails on OSR6
Date: 8 Sep 2005 03:18:46 -0400
Message-ID: <200509080018.aa21586@deepthought.armory.com> 
References: <1126140401.425597.163360@g47g2000cwa.googlegroups.com> 

Roger Cornelius wrote:

> OSR6 with MP1
> 
> Up until OSR6, I was still using the Xenix 386 sort, which runs
> approximately 3 x faster than the Openserver sort.  It doesn't run at
> all on OSR6 though, and immediately fails with:
> 
>   sort: allocation error before sort
> 
> I've tried running it under truss, but I don't see anything obviously
> wrong.  Would someone more knowledgable care to look at the truss
> output and give their opinion?  It can be seen here:
> 
>   http://tenzing.org/xenix-sort

The call right before failure, `sysi86(SI86DSCR)', is doing something to
the process's memory map.  Immediately thereafter, it fails with a
memory-related error message.  It appears that the kernel or `xemul'
emulation layer isn't emulating this particular call cleanly enough.

Stepping back: OSR5's slow `sort` always irked me.  It's caused by the
implementation of internationalized collation sequences.  This is code
in libc which was imported into OSR5 from UnixWare 2 (this was long
before SCO bought UnixWare; they bought a license to the SVR4/UW2
compiler and libc).  The same code lived on into UW7 and beyond, but the
performance issues were long since fixed.  `sort` on UW7 is performant.

OSR6 uses a merged libc for OSR5/OSR6 binaries, but apparently this part
is more OSR5 than UW7.

You might try grabbing a UW7 (714 would be best) `sort` binary to see if
it performs any better.  It would run against the UW7-specific libc in
OSR6, which hopefully has the faster collation code.

I did test this on OSR506; a randomly chosen UW7 `sort` binary runs some
simple tests about 2.5x as fast as the native one.

>Bela<
 



Click here to add your comments



Don't miss responses! Subscribe to Comments by RSS or by Email

Click here to add your comments


If you want a picture to show with your comment, go get a Gravatar


cartoon
Looking for Mac OS X Help?
OS X PDF e-books
Inexpensive, instant download


/Bofcusm/2607.html copyright 1997-2004 (various authors) All Rights Reserved

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more. We appreciate comments and article submissions.

Publishing your articles here

Jump to Comments



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them. I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. I also may own stock in companies mentioned here. If you have any question, please do feel free to contact me.

Specific links that take you to pages that allow you to purchase the item I reviewed are very likely to pay me a commission. Many of the books I review were given to me by the publishers specifically for the purpose of writing a review. These gifts and referral fees do not affect my opinions; I often give bad reviews anyway.

We use Google third-party advertising companies to serve ads when you visit our website. These companies may use information (not including your name, address, email address, or telephone number) about your visits to this and other websites in order to provide advertisements about goods and services of interest to you. If you would like more information about this practice and to know your choices about not having this information used by these companies, click here.



More:
       - OSR5
       - Bofcusm
       - Bela
       - Slowness


Unix/Linux Consultants

Skills Tests

Guest Post Here











My Favorites

Change Congress