Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Problem with background processes.
@ 2000-04-09  4:00 Rakesh Didwania
  0 siblings, 0 replies; only message in thread
From: Rakesh Didwania @ 2000-04-09  4:00 UTC (permalink / raw)


Hi,

I am facing some performance problems with background jobs in DEC 4.0E.

Consider the two shell scripts a.sh & b.sh.
a.sh runs the commands in foreground and b.sh runs the commands
in background.

abc is a large executable (statically linked) with size around 2 MB.
dummy is the argument to the executable abc.

a.sh                                b.sh
(time abc dummy)                    (time abc dummy) &
Output :                            Output:
real    0m1.70s                     real    0m1.70s
user    0m1.63s                     user    0m1.63s
sys     0m0.03s                     sys     0m0.03s

Both the scripts takes similar time.

a.sh                                b.sh
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
Output :                            Output:
real    0m1.70s                     real    0m3.38s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.01s

real    0m1.70s                     real    0m3.40s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

The real time of b.sh becomes double while user time and system time
remains the same.

a.sh                                b.sh
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
Output :                            Output:
real    0m1.70s                     real    0m5.08s
user    0m1.65s                     user    0m1.63s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m5.06s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.01s

real    0m1.70s                     real    0m5.10s
user    0m1.65s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

The real time of b.sh becomes almost three times. The user time and
the system time remains the same.

a.sh                                b.sh
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
Output :                            Output:
real    0m1.68s                     real    0m6.78s
user    0m1.63s                     user    0m1.63s
sys     0m0.03s                     sys     0m0.03s

real    0m1.68s                     real    0m6.78s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.88s                     real    0m6.78s
user    0m1.65s                     user    0m1.63s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m6.76s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

The real time of b.sh becomes almost four times. The user time and
the system time remains the same.

...
...


a.sh                                b.sh
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
(time abc dummy)                    (time abc dummy) &
Output :                            Output:
real    0m1.70s                     real    0m16.91s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m16.93s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m17.00s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.68s                     real    0m16.96s
user    0m1.65s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m16.96s
user    0m1.63s                     user    0m1.63s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m17.03s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m17.03s
user    0m1.65s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m16.95s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.70s                     real    0m16.96s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

real    0m1.68s                     real    0m16.96s
user    0m1.63s                     user    0m1.65s
sys     0m0.03s                     sys     0m0.03s

Following the above trend, the real time of b.sh becomes ten times. The
user time and the system time still remains the same.

This behaviour is unlike other Operating Systems. Is this a bug in
DEC 4.0E (Upto 4.0D everthing works fine) or I am missing something?
Please help.

Thanks & Regards,
Rakesh Didwania.



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-04-09  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-09  4:00 Problem with background processes Rakesh Didwania

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox