Alarm Clock takes CPU time up to 3% almost continuosly

Asked by vito

I've just installed the latest 0.9.17 version of Alarm Clock and I set it to start upon login in (logical, otherwise why one need an alarm clock).

What I've noticed (never paid attention before) that it uses CPU time from 1% to 3% almost continuosly. The Alarm Clock process runs about each 1 second and runs up to about 5-6 seconds. And all I set up where 3 Birthdays distant for several months one from another.

Now, even if multiple alarms are set, I hardly imagine somebody needs an alarm clock being precise up to a second.

Well, I could imagine such a need, if one sets up a timer, but even this with a little exaggerated imagination. If you disagree with my reasoning for timers, then I think it would be possible to make Alarm Clock being aware of such a need and only in such cases make it checking the time so often (if this is the reason for it using CPU so much), wouldn't it?

BTW, I compared it with the evolution-alarm-notify and this one sleeps practically all the time, though I do have quite a number of appointment alarms set.

So, the question is, is there really need to use CPU time so much and so often?

Do you think, I should report it as a bug instead of a question?

Question information

Language:
Russian (Russian Federation) Edit question
Status:
Solved
For:
GNOME Automate Edit question
Assignee:
No assignee Edit question
Solved by:
sabby7890
Solved:
Last query:
Last reply:
Revision history for this message
Best sabby7890 (tsalacinski) said :
#1

Hello,

Yes, I am using a pretty fast computer that's why I haven't noticed that (Alarm Clock never uses more than 1% of CPU).

I just checked on an older computer (300mhz) with Ubuntu and it takes ~27% of CPU time every second.

It seems that CheckAlarmThread.py fails - please post a bug about this.

Revision history for this message
vito (ovitorio) said :
#2

Well, it answers my question in a sense that the problem is recognized as existent.

My computer is not a newest one but it still not so bad. I have Asus P4PE mobo, Intel Pentium 4 CPU 2.4GH processer and 1Gb of RAM. And Alarm Clock uses way more than 1% CPU as I reported.

But my question was probably is not even about it, but rather why Alarm Clock touches CPU so often at all. Again compare it with Evolution alarm notification service, it sleeps most of the time. I've actually never seen it running at all. It's pretty hard to catch it on that.

OK. I'll report it as a bug.