09-27-2007
Only a guess, but given that it grows over time it could be that you have some kind of list or array-like entity that is growing without reasonable bound, and it is simply taking more CPU cycles to process the growing amount of data. It could be worthwhile to see if memory usage is also growing over time.
10 More Discussions You Might Find Interesting
1. Programming
how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries
through a c program or java program
i want to store that data into database so i can show it graphically
thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
2. Shell Programming and Scripting
For analysis, I need to gather CPU usage from say 1:00 PM to 2:00 PM every 10 seconds on a given day. I heard this can be done with awk, but my UNIX is kind of rusty. (4 Replies)
Discussion started by: WG1
4 Replies
3. Programming
Please tell me solaris functions/api for getting following information
1- Function that tells how much memory used by current process
2- Function that tells how much memory used by all running processes
3- Function that tells how much CPU is used by current process
4- Function that tells how... (1 Reply)
Discussion started by: mansoorulhaq
1 Replies
4. HP-UX
how can I find cpu usage memory usage swap usage and
I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times
my final destination is monitor process
logical volume usage above X % and number of Logical voluage above
can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies
5. Solaris
Hi,
I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP.
I want the oids for above tasks.
can you please tell me that
Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies
6. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
7. AIX
How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies
8. Programming
Hi all,
I'm using python and psutil a library to get system informations like cpu usage (percent) for a given process.
My question is if I have the value in % of the cpu usage how I could get the cpu usage in cycle number I mean not in percent?
Thanks a lot
D. (5 Replies)
Discussion started by: Dedalus
5 Replies
9. AIX
Hi Guys,
I am a newbie on the forum. This is my first post, so first of all I would like to introduce myself.
I am a SAS Analyst programmer working for an Health Insurance client. SAS is installed on a 16 CPU AIX Server with partitions running with shared processor. I have couple of... (2 Replies)
Discussion started by: saurabhiim2003
2 Replies
10. AIX
Hi all,
I am currently having trouble to get nmon to print me the actual CPU usage for an interval for a process.
According to the manual, something like
# time nmon -t -C cron -s 5 -c 2 -F outfile
real 0m0.98s
user 0m0.03s
sys 0m0.04s
should print out at least the process... (15 Replies)
Discussion started by: zaxxon
15 Replies
LEARN ABOUT CENTOS
set_volume_per_voice
set_volume_per_voice(3alleg4) Allegro manual set_volume_per_voice(3alleg4)
NAME
set_volume_per_voice - Sets the volume of a voice. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
void set_volume_per_voice(int scale);
DESCRIPTION
By default, Allegro will play a centered sample at half volume on both the left and right channel. A sample panned to the far right or left
will be played at maximum volume on that channel only. This is done so you can play a single panned sample without distortion. If you play
multiple samples at full volume, the mixing process can result in clipping, a noticeable form of distortion. The more samples, the more
likely clipping is to occur, and the more clipping, the worse the output will sound.
If clipping is a problem - or if the output is too quiet - this function can be used to adjust the volume of each voice. You should first
check that your speakers are at a reasonable volume, Allegro's global volume is at maximum (see set_volume() below), and any other mixers
such as the Windows Volume Control are set reasonably. Once you are sure that Allegro's output level is unsuitable for your application,
use this function to adjust it.
Each time you increase the parameter by one, the volume of each voice will halve. For example, if you pass 4, you can play up to 16 centred
samples at maximum volume without distortion.
If you pass 0 to this function, each centred sample will play at the maximum volume possible without distortion, as will all samples played
through a mono driver. Samples at the extreme left and right will distort if played at full volume. If you wish to play panned samples at
full volume without distortion, you should pass 1 to this function. Note: this is different from the function's behaviour in WIPs 3.9.34,
3.9.35 and 3.9.36. If you used this function under one of these WIPs, you will have to increase your parameter by one to get the same vol-
ume.
Note: The default behaviour has changed as of Allegro 4.1.15. If you would like the behaviour of earlier versions of Allegro, pass -1 to
this function. Allegro will choose a value dependent on the number of voices, so that if you reserve n voices, you can play up to n/2 nor-
malised samples with centre panning without risking distortion. The exception is when you have fewer than 8 voices, where the volume
remains the same as for 8 voices. Here are the values, dependent on the number of voices:
1-8 voices - set_volume_per_voice(2)
16 voices - set_volume_per_voice(3)
32 voices - set_volume_per_voice(4)
64 voices - set_volume_per_voice(5)
Of course this function does not override the volume you specify with play_sample() or voice_set_volume(). It simply alters the overall
output of the program. If you play samples at lower volumes, or if they are not normalised, then you can play more of them without distor-
tion.
It is recommended that you hard-code the parameter into your program, rather than offering it to the user. The user can alter the volume
with the configuration file instead, or you can provide for this with set_volume().
To restore volume per voice to its default behaviour, pass 1.
SEE ALSO
reserve_voices(3alleg4), set_volume(3alleg4), install_sound(3alleg4), detect_digi_driver(3alleg4), detect_midi_driver(3alleg4)
Allegro version 4.4.2 set_volume_per_voice(3alleg4)