ntlmaps process should be started with higher niceness

Bug #116178 reported by vilbara
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ntlmaps (Ubuntu)
Confirmed
Wishlist
Unassigned

Bug Description

Binary package hint: ntlmaps

Currently ntlmaps runs with niceness of 0. For any reason the process consumes a lot of CPU when http connection is active over the proxy. So much CPU that GUI responsiveness degrades dramatically if 3 or more pages are being loaded simultaneously in Firefox. The solution is to renice ntlmaps process. http connection performance doesn't degrade and this fixes computer responsiveness.

I usually add "-N 19" to the /etc/init.d/ntlmaps startup script so startup section looks as following:

  start)
        echo -n "Starting $DESC: "
        start-stop-daemon --start -N 19 --quiet --pidfile /var/run/$NAME.pid \
                --background --exec $DAEMON -- $DAEMON_OPTS
        echo "$NAME."
        ;;

Revision history for this message
Ney Fabrício (neyfabricio) wrote :

For me, it doesn't work. I'm desperate for a solution on this particular bug, since my Employer uses M$ 2k3 Server as proxy server.

I have the same problems with Firefox here too, however when I use Adept to download / upgrade packages, ntlmaps works just fine. Surfing the web with Konqueror also works smooth with the ntlmaps proxy.

But when I go back to the command line and use apt-get or aptitude... oh, such a nightmare. Ten minutes just to update the repos in a 10 mbps Internet connection!

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 beta?

Changed in ntlmaps:
importance: Undecided → Wishlist
status: New → Incomplete
Revision history for this message
vilbara (vilmantas-baranauskas) wrote :

Yes, ntlmaps in 8.10 beta still loads CPU to 100%.

Revision history for this message
vilbara (vilmantas-baranauskas) wrote :

I've just moved from ntlmaps to cnltm. Performance is SO MUCH BETTER.

Configuration was straightforward with only one tiny problem: I needed to run tool manually once with -M option to find out that I need to uncomment "Auth LM" in /etc/cntlm.conf file.

Revision history for this message
Philip Muškovac (yofel) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Revision history for this message
vilbara (vilmantas-baranauskas) wrote :

Yes, this bug is still valid for ntlmaps.

Looks like there have been no development activity of ntlmaps for the past 3 years. Therefore solution to set process niceness to 19 is the only workaround I know (as I am not familiar with python to really fix the bug).

Philip Muškovac (yofel)
Changed in ntlmaps (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Ney Fabrício (neyfabricio) wrote :

I've switched to CNTLM and it works just fine. Ntlmaps, thanks for your service.

Revision history for this message
drr (drr) wrote :

I noticed my laptop cpu getting heated up while the machine was idle and disconnected from internet. 'top' showed around 50% cpu usage by gnome-panel, followed by main.py. stopping ntlm with 'sudo service ntlmaps stop' solved the issue. i guess gnome-panel was trying to update weather information through ntlmaps.

i am using karmic koala beta.
uname : Linux 2.6.31-14-generic x86_64
ntlmaps : 0.9.9.0.1-10ubuntu1

Revision history for this message
Alexius Dionysius Diakogiannis (alexius-diakogiannis) wrote :

Dear all,

The problem still exists in Ubuntu 10.10, any plans on fixing this because it is a major business stopper...

Thanks

Maarten Bezemer (veger)
summary: - ntlmaps process should be started with hihger niceness
+ ntlmaps process should be started with higher niceness
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.