Louis,
The libraries are either compiled into the executable (.a) or are linked
in at execution (.so).
So, when your DB vendor recommended that you use the non-runtime libraries
you increased the size of your executable because it includes the libraries.
You can take several approaches:
1) increase physical memory or optimize the size of your cache.
2) Talk to your vendor and find out a) when they will have a fix so that
you can use the run-time libraries. or b) if you have to compile in all the
.a libraries for the specific database functions you are performing. You
may be able to get by with a subset of the libraries.
Another consideration is that the compiled in libraries are faster even
though they may use more memory.
Consider your options for the best choice in your situation.
DaveB
Quote:> Forgotten,
> Below are the new compile and link statements, are these optimal/correct
for
> AIX ?
gcc -DIDI_BIG_ENDIAN -DNOTIMEOUT_SUPPORTED=IDI_TRUE -DOS_SHMADDR_OK=IDI_TRUE
Quote:> -DSTRTOUL_SUPPORTED=IDI_TRUE -DUNIX -DSVR4 -DSVR4S -D_REENTRANT -DSTATVFS
_S
> UPPORTED -DAIO -O -c db_actions.c -DIDI_SERVER -I/apps/v83/dm/include
gcc -DIDI_BIG_ENDIAN -DNOTIMEOUT_SUPPORTED=IDI_TRUE -DOS_SHMADDR_OK=IDI_TRUE
Quote:> -DSTRTOUL_SUPPORTED=IDI_TRUE -DUNIX -DSVR4 -DSVR4S -D_REENTRANT -DSTATVFS
_S
> UPPORTED -DAIO -s cgi_functions.o fldvalues.o ddb_arrays.o filltempl.o
> opi_err.o db_functions.o ddb_functions.o parse_query.o ./db_actions.o
> /apps/v83/dm/obj/opilib/opilib.a /apps/v83/dm/obj/opcslib/opcslib.a
> /apps/v83/dm/obj/opilib/opilib.a
/apps/v83/dm/obj/opcslib/opcslib.a -L/apps/v83/dm/lib -ldmlib -L/apps/v83/dm
> /lib -lsslib -L/apps/v83/dm/lib -luelib -lnsl -lpthread -lopilib -lm -o
> db_actions29236 -DIDI_SERVER -I/apps/v83/dm/include
> Regards,
> Louis Banens
> Hi,
> Platform IBM RS6000, AIX 4.3.3
> We are forced by our database vendor to compile our programs with their
non
> shared libraries (.a) instead of their shared object libraries (.so). This
> because the programs did not run anymore with their latest database
version
> (although they did compile and link). So we compiled our programs with the
> non-shared libraries but now we experience serious performance problems
due
> to increased memory usage. Can anybody tell me something about this
subject
> or give some suggestions ?
> Regards,
> Louis Banens