* Re: Urgent: Manipulating large libraries
@ 1997-08-20 2:50 Stephen Williams
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Williams @ 1997-08-20 2:50 UTC (permalink / raw)
Steve Williams wrote:
Craig is right. furthermore, watch out for the performance of "ar cr". If
the
library is large, you usually get better performance by removing it and
using "ar cq". The latter doesn't have the exponential behavior of the
other.
przemek@rrdjazz.nist.gov said:
> Ah, so that's why many makefiles do rm -f libxxx.a ar rv libxxx.a
> *.o
Yes. My makefiles do that too, although I use qv instead of rv--even faster.
(Also, I have seem some archivers, notably on some versions of sunos,
botch the replace action.)
--
Steve Williams
steve@icarus.com
steve@picturel.com
"The woods are lovely, dark and deep. But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Urgent: Manipulating large libraries
@ 1997-08-20 17:12 Dale Martin
0 siblings, 0 replies; 8+ messages in thread
From: Dale Martin @ 1997-08-20 17:12 UTC (permalink / raw)
Przemek Klosowski <przemek@rrdjazz.nist.gov> writes:
> Ah, so that's why many makefiles do
> rm -f libxxx.a
> ar rv libxxx.a *.o
I've also heard that the flags and/or behavior when appending with
"ar" is not portable between platforms - so the Makefiles I've written
do what you say too.
Later,
Dale
--
+-------------------- finger for pgp public key ---------------------+
| Dale E. Martin | University of Cincinnati Savant Research Laboratory |
| dmartin@ececs.uc.edu | http://www.ececs.uc.edu/~dmartin |
+----------------------------------------------------------------------+
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Urgent: Manipulating large libraries
@ 1997-08-20 15:37 Przemek Klosowski
0 siblings, 0 replies; 8+ messages in thread
From: Przemek Klosowski @ 1997-08-20 15:37 UTC (permalink / raw)
burley@gnu.ai.mit.edu said:
> I'm no expert on this, but why "doing lots of ranlib's"? I believe
> the only purpose to ranlib, on systems where it has any purpose at
> all, is to construct indexes for a library so `ld' can read it
> efficiently.
Steve Williams wrote:
Craig is right. furthermore, watch out for the performance of "ar cr". If the
library is large, you usually get better performance by removing it and
using "ar cq". The latter doesn't have the exponential behavior of the
other.
Ah, so that's why many makefiles do
rm -f libxxx.a
ar rv libxxx.a *.o
:^/
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Urgent: Manipulating large libraries
@ 1997-08-20 3:54 Craig Burley
0 siblings, 0 replies; 8+ messages in thread
From: Craig Burley @ 1997-08-20 3:54 UTC (permalink / raw)
>I've tried manipulating a large library (^17MB) on an old 60MHz Pentium,
>working on a SCSI-2 Jaz drive (so the disk is not too slow). A make,
>doing lots of ranlib's, takes nearly 30 minutes even if there are no
>changes; on an IBM rs/6000 43P (not a particularly fast workstation), it
>takes just a few seconds!
I'm no expert on this, but why "doing lots of ranlib's"? I believe the
only purpose to ranlib, on systems where it has any purpose at all,
is to construct indexes for a library so `ld' can read it efficiently.
So, if you aren't loading from the library between running `ranlib' on
it, eliminate all but the final `ranlib'.
In particular, I am guessing that what you might be doing is something
akin to `ar rc libfoo.a foo1; ranlib libfoo.a; ar rc libfoo.a foo2;
ranlib libfoo.a; ar rc libfoo.a foo3; ranlib libfoo.a; ...', in which
case I think you'd be much better off eliminating all but the final
`ranlib'.
(Perhaps on the IBM system `ranlib' is smart enough to do nothing
if no updating is needed?)
Sometimes modifying `makefile' rules to do this is a bit of a pain,
however...especially when one tries to target a wide variety of
old, buggy, or incomplete versions of `make'. But it is doable,
worth carefully reading various chunks of documentation to figure
it out.
--
"Practice random senselessness and act kind of beautiful."
James Craig Burley, Software Craftsperson burley@gnu.ai.mit.edu
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
[parent not found: <Pine.LNX.3.96.970819205550.29346A-100000@amasis.trin.cam.ac.uk>]
* Re: Urgent: Manipulating large libraries
[not found] <Pine.LNX.3.96.970819205550.29346A-100000@amasis.trin.cam.ac.uk>
@ 1997-08-19 20:35 ` Tom Browder
1997-08-19 20:36 ` Ben Scott
1 sibling, 0 replies; 8+ messages in thread
From: Tom Browder @ 1997-08-19 20:35 UTC (permalink / raw)
Nikhil, I can't say REAL large libs, but I've been working
through growing pains with libs about 2-4 MB and so
far so good. In fact, no probs now on C side of
house. (Microway 500 MHz Screamer, 128MB ram, 9 GB SSI disk).
(RH 4.2). Developers have been very helpful and I'm
getting to like the new machine!
-Tom Browder
On Tue, 19 Aug 1997, Nikhil Nair wrote:
> Hi,
>
> Has anyone experience with manipulating (ar, ranlib etc.) large libraries,
> of the order of tens of MB?
>
> I need to order an Alpha this week. Budget restrictions mean I either get
> a 21164 366MHz / 1MB cache with 128MB SDRAM, or get a slightly faster
> machine with 64MB SDRAM.
>
> I've tried manipulating a large library (^17MB) on an old 60MHz Pentium,
> working on a SCSI-2 Jaz drive (so the disk is not too slow). A make,
> doing lots of ranlib's, takes nearly 30 minutes even if there are no
> changes; on an IBM rs/6000 43P (not a particularly fast workstation), it
> takes just a few seconds!
>
> I'm rather worried. Swapping was not excessive - I have 24MB RAM, and at
> most 2MB of swap was in use. The disk was going most of the time, so I
> think ranlib on my PC was reading the huge lib in each time, whereas on
> the 43P (which has 192 MB), it was held in memory.
>
> If this is the case, will I have a problem with only 64MB - there may be
> insufficient memory to buffer the whole lib (would it be buffered
> anyway)? A 17MB lib on an i586 would be larger on an Alpha, wouldn't it
> (I've heard that Alpha executables are larger)? Maybe I could put the lib
> in a large ramdisk ... but I'd need a lot of memory.
>
> I'd *really* appreciate any advice. I don't have much more than a day to
> make up my mind, so please hurry if you can.
>
> TIA,
>
> Nikhil.
>
> --
> Nikhil Nair
> Trinity College, Cambridge, England
> Tel.: +44 1223 368353
> Email: nn201@cus.cam.ac.uk
> nnair@debian.org
>
>
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
>
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Urgent: Manipulating large libraries
[not found] <Pine.LNX.3.96.970819205550.29346A-100000@amasis.trin.cam.ac.uk>
1997-08-19 20:35 ` Tom Browder
@ 1997-08-19 20:36 ` Ben Scott
1 sibling, 0 replies; 8+ messages in thread
From: Ben Scott @ 1997-08-19 20:36 UTC (permalink / raw)
On Tue, 19 Aug 1997, Nikhil Nair wrote:
> I need to order an Alpha this week. Budget restrictions mean I either get
> a 21164 366MHz / 1MB cache with 128MB SDRAM, or get a slightly faster
> machine with 64MB SDRAM.
It depends on where your bottleneck is. It sounds a lot like the slow down
is happening simply because the IBM has more RAM and thus can fit the entire
DB into file cache memory, while the Pentium cannot. RAM is many, many times
faster then disk, and having enough RAM to cache your entire database far
outweighs any benefit you'll get from the faster CPU. Go with the memory.
===========================================================================
Ben Scott <ben.scott@unh.edu> http://pubpages.unh.edu/~bscott/
DISCLAIMER: Everything I said in this message could have been a TOTAL LIE.
---------------------------------------------------------------------------
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
* Urgent: Manipulating large libraries
@ 1997-08-19 20:07 Nikhil Nair
0 siblings, 0 replies; 8+ messages in thread
From: Nikhil Nair @ 1997-08-19 20:07 UTC (permalink / raw)
Hi,
Has anyone experience with manipulating (ar, ranlib etc.) large libraries,
of the order of tens of MB?
I need to order an Alpha this week. Budget restrictions mean I either get
a 21164 366MHz / 1MB cache with 128MB SDRAM, or get a slightly faster
machine with 64MB SDRAM.
I've tried manipulating a large library (^17MB) on an old 60MHz Pentium,
working on a SCSI-2 Jaz drive (so the disk is not too slow). A make,
doing lots of ranlib's, takes nearly 30 minutes even if there are no
changes; on an IBM rs/6000 43P (not a particularly fast workstation), it
takes just a few seconds!
I'm rather worried. Swapping was not excessive - I have 24MB RAM, and at
most 2MB of swap was in use. The disk was going most of the time, so I
think ranlib on my PC was reading the huge lib in each time, whereas on
the 43P (which has 192 MB), it was held in memory.
If this is the case, will I have a problem with only 64MB - there may be
insufficient memory to buffer the whole lib (would it be buffered
anyway)? A 17MB lib on an i586 would be larger on an Alpha, wouldn't it
(I've heard that Alpha executables are larger)? Maybe I could put the lib
in a large ramdisk ... but I'd need a lot of memory.
I'd *really* appreciate any advice. I don't have much more than a day to
make up my mind, so please hurry if you can.
TIA,
Nikhil.
--
Nikhil Nair
Trinity College, Cambridge, England
Tel.: +44 1223 368353
Email: nn201@cus.cam.ac.uk
nnair@debian.org
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread* Re: Urgent: Manipulating large libraries
@ 1997-08-19 13:20 Stephen Williams
0 siblings, 0 replies; 8+ messages in thread
From: Stephen Williams @ 1997-08-19 13:20 UTC (permalink / raw)
>I've tried manipulating a large library (^17MB) on an old 60MHz Pentium,
>working on a SCSI-2 Jaz drive (so the disk is not too slow). A make,
>doing lots of ranlib's, takes nearly 30 minutes even if there are no
>changes; on an IBM rs/6000 43P (not a particularly fast workstation), it
>takes just a few seconds!
burley@gnu.ai.mit.edu said:
> I'm no expert on this, but why "doing lots of ranlib's"? I believe
> the only purpose to ranlib, on systems where it has any purpose at
> all, is to construct indexes for a library so `ld' can read it
> efficiently.
Craig is right. furthermore, watch out for the performance of "ar cr". If the
library is large, you usually get better performance by removing it and
using "ar cq". The latter doesn't have the exponential behavior of the
other.
--
Steve Williams
steve@icarus.com
steve@picturel.com
"The woods are lovely, dark and deep. But I have promises to keep,
And lines to code before I sleep, And lines to code before I sleep."
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~1997-08-20 17:12 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-08-20 2:50 Urgent: Manipulating large libraries Stephen Williams
-- strict thread matches above, loose matches on Subject: below --
1997-08-20 17:12 Dale Martin
1997-08-20 15:37 Przemek Klosowski
1997-08-20 3:54 Craig Burley
[not found] <Pine.LNX.3.96.970819205550.29346A-100000@amasis.trin.cam.ac.uk>
1997-08-19 20:35 ` Tom Browder
1997-08-19 20:36 ` Ben Scott
1997-08-19 20:07 Nikhil Nair
1997-08-19 13:20 Stephen Williams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox