There is a script which processes the incoming files from a particular directory and sleeps if it doesnt find any. Currently, i have been told that eventhough there are no files to process, the CPU utilization is very high. An independent evaluation by advisory specialist has found this script does language character set conversion(results can be seen after the message) . But there is no conversion done explicitly as such, but, there are lot of display messages in the script (echo "chinese message") , does it cause the language character set conversion as pointed by the advisor? also, currently there is a sleep of 5 secs in the script, if i increase it to 60 seconds, does it make a difference to the performance?
Profile: /usr/lib/libc.a[shr.o]
Total % For All Processes (/usr/lib/libc.a[shr.o]) = 7.94
Subroutine % Source
========== ====== ======
.wctomb 2.79 ../../../../../../../src/bos/usr/ccs/lib/libc/wctomb.c
.mbtowc 2.57 ../../../../../../../src/bos/usr/ccs/lib/libc/mbtowc.c
Profile: /usr/lib/libi18n.a[shr.o]
Total % For All Processes (/usr/lib/libi18n.a[shr.o]) = 6.76
Subroutine % Source
========== ====== ======
.__wcstombs_std 3.40 ../../../../../../../src/bos/usr/ccs/lib/libi18n/__wcstombs_std.c
.wctomb 1.28 glink.s
.__mbtowc_iso1 1.06 ../../../../../../../src/bos/usr/ccs/lib/libi18n/__mbtowc_iso1.c
.__wctomb_iso1 1.01 ../../../../../../../src/bos/usr/ccs/lib/libi18n/__wctomb_iso1.c
edit by bakunin: please enclose code, quoted output and similar things into "code"-tags like i did for you now. Thanks.