[Yazlist] Threads versus Proceses

Jason MacDonald jasonm at compusult.nf.ca
Tue Oct 2 15:09:46 CEST 2001

    Thank you for the information. I have downloaded and compiled yaz 1.7
but it does not interface with my application in the same manner that yaz
1.6 did. There seems to be some differences with some of the structures
including bend_searchresult. Is there any documentation detailing the
changes between versions 1.6 and 1.7?

Thank You.
Jason MacDonald
Meta Manager Support
Compusult Limited
metamanager-devel at compusult.nf.ca

----- Original Message -----
From: "Adam Dickmeiss" <adam at indexdata.dk>
To: "Jason MacDonald" <jasonm at compusult.nf.ca>
Cc: <yazlist at indexdata.dk>
Sent: Friday, September 28, 2001 6:07 PM
Subject: Re: [Yazlist] Threads versus Proceses

> On Fri, Sep 28, 2001 at 04:29:29PM -0230, Jason MacDonald wrote:
> > Hi,
> >     Has anyone though of developing/changing YAZ to use threads instead
of processes? The problem I am having is we have many people hitting our
Z39.50 server. With a new process being created for each search our system
sometime gets very slow. If YAZ was written to use threads instead of
processes I think it would resolve this problem. Does anyone have any other
> YAZ 1.6 only supports threaded operation on NT and forked (process) mode
> on UNIX. YAZ version 1.7, however, supports both the forked mode and
> threaded mode on UNIX - provided that POSIX threads are supported on
> your system. You start the server in threaded mode by supplying
> option -T, eg.
>   ./yaz-ztest -T ...
> Or whatever your server might be called.
> On Linux forking is quite fast as long as you don't run the server
> under inetd.
> I did a small benchmark on my Linux portable. I did 1000
> connects,inits in one go - and get the following results:
> Forked mode:    37 sec real time.
> Threaded mode:  34 sec real time.
> The results indicate that there's little difference for the
> server itself. Having said that you may, depending on your
> application, save a lot more - especially if your backend
> require many resources during initilization (bend_init) that
> can be skipped in threaded mode.
> You can get YAZ 1.7 from our development directory.
> Cheers,
>   Adam
> > Thank you.
> >
> > Jason MacDonald
> > Compusult Limited
> >
> --
> Adam Dickmeiss  mailto:adam at indexdata.dk  http://www.indexdata.dk
> Index Data      T: +45 33410100           Mob.: 212 212 66

More information about the Yazlist mailing list