Bug 147578

Summary: kerry: cannot stop beagled once it is started
Product: [openSUSE] SUSE Linux 10.1 Reporter: Forgotten User ZhJd0F0L3x <forgotten_ZhJd0F0L3x>
Component: KDEAssignee: Joe Shaw <joeshaw>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Critical    
Priority: P5 - None CC: aj, joe, kukuk
Version: Beta 3   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Component Test Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 140732    

Description Forgotten User ZhJd0F0L3x 2006-02-02 11:14:56 UTC
I can start beagled with kerry, but i cannot stop it.
The only thing i can do to stop beagled is log out or even reboot.
Comment 1 Stephan Binner 2006-02-02 11:25:02 UTC
Why do you want to stop it at all? You don't want to have a current index when using Beagle?
Comment 2 Forgotten User ZhJd0F0L3x 2006-02-02 12:39:39 UTC
(In reply to comment #1)
> Why do you want to stop it at all?

2 reasons:
----------
- after e.g. synchronizing my IMAP mailbox, beagle causes ~60 seconds of 100%CPU and lots of disk activity
- memory usage:
seife@strolchi:~> ps aux|grep beagled
seife    12190  2.3  8.6 189256 89128 ?        Sl   Feb01  22:25 mono-beagled --debug /usr/lib/beagle/BeagleDaemon.exe --fg
seife    16612  1.4  2.7  74308 28820 ?        Sl   13:00   0:32 mono-beagled-helper --debug /usr/lib/beagle/IndexHelper.exe

> You don't want to have a current index when using Beagle?

Of course, but sometimes i need my battery to last more than 60 minutes, and sometimes my machine needs to do something else than generation an index, something useful for example.
> 

Comment 3 Stephan Kulow 2006-02-02 13:04:21 UTC
so file a beagle enhancement bug to pause if you're on battery?
Comment 4 Forgotten User ZhJd0F0L3x 2006-02-02 13:13:33 UTC
how does this help memory consumption?
Comment 5 Stephan Binner 2006-02-09 15:01:20 UTC
Add a .desktop file on your desktop/panel which executes 'beagle-shutdown'. :-)
Comment 6 Forgotten User ZhJd0F0L3x 2006-02-09 17:34:20 UTC
(In reply to comment #5)
> Add a .desktop file on your desktop/panel which executes 'beagle-shutdown'. :-)

Hm. "Enterprise Ready". NOT.
Comment 7 Stephan Binner 2006-02-10 14:11:26 UTC
Now runs beagle-shutdown on requested quit.
Comment 8 Marcel Hilzinger 2006-04-21 13:20:46 UTC
There is no proper way in 10.1 rc1 to stop beagles indexing funcition. 
 
beagle-shutdown
ERROR: The Beagle daemon does not appear to be running

top shows me beaglein with 40-100% CPU consumption. 

If you remeber: one reason, why locate and updatedb was removed from the standard installation were the many user complaints about "Why is my harddrive working all the time if I start my system". Now with beagle in 10.1 rc1 it's the same.
Comment 9 Stephan Binner 2006-04-21 13:35:53 UTC
The user clients cannot stop it as this stuff is running as user beagleindex.
Comment 10 Joe Shaw 2006-04-21 13:46:18 UTC
I'm confused.  Are we talking about beagle-build-index (the cron.daily job that runs as beagleindex) or the beagle daemon (the daemon that's started at login that runs as the user)?

If we're talking about the cronjob, I had set it as a job to run at 4 am, but then I got bugs filed about *that* because it wasn't LSB compliant, so I switched it back to cron.daily which just runs whenever it wants to.  *That* is the bug, IMO; cron.daily should be a lot smarter about when it runs its jobs.

Either way, the cron job runs at nice +19 and IO priority idle, so it's as unobtrusive as possible.  Unlike updatedb, beagle-build-index is incremental, so while there is a bit of a cost the very first time you run it, it's substantially lower in subsequent runs.

What we need to do is stop running it 15 minutes after you boot your computer for the first time.
Comment 11 Stephan Binner 2006-04-21 13:51:09 UTC
The original report was about beagle daemon, comment 8 highjacked it for beagle-build-index. :-|
Comment 12 Joe Shaw 2006-04-21 15:04:27 UTC
Ok, this bug has lost focus. :)  Why was it assigned to me?  Is it for an enhancement request to pause the daemon when on battery?  (also filed upstream as http://bugzilla.gnome.org/show_bug.cgi?id=325160)  Is it an enhancement request for Kerry to be able to shut down the daemon?  Is it to reduce memory usage, which is an ongoing thing upstream?

Comment 13 Carlos Eduardo Bezerra 2006-04-22 03:18:04 UTC
I believe it is an enhancement request for Kerry to be able to shut down the daemon. A 'Stop Indexing' button if you'd like. Just my 2ยข.
Comment 14 Stephan Binner 2006-04-24 07:17:58 UTC
> Ok, this bug has lost focus.

Right. Marcel, please file a separate report for this and tell exactly what you want.