calling iwconfig and ifconfig every three seconds not efficient

Bug #510275 reported by jidanni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
Triaged
High
David Paleino

Bug Description

Turning on debugging, one discovers wicd is calling iwconfig and
ifconfig every three seconds. This seems not to efficient. Wouldn't it
be better to use some function calls, instead of execing whole /sbin
programs? I.e., use some tools found in other than man1 or man8 parts
of the UNIX manuals.

Revision history for this message
Andrew Psaltis (nacl) wrote :

This will not be dealt with in the 1.x series, it will be included in the rewrite, to be released in the yet unknown late future.

All bugs in wicd 1.x will not be fixed unless they are considered sufficiently problematic by the development team.

Changed in wicd:
status: New → Triaged
David Paleino (dpaleino)
Changed in wicd:
importance: Undecided → Medium
Revision history for this message
Wim Lewis (wiml) wrote :

(It does seem like using an rtnetlink socket and RTMGRP_LINK would be a much more efficient way to monitor link state changes, which I assume is what wicd is doing here.)

Revision history for this message
David Paleino (dpaleino) wrote :

Exactly.

I've been investigating how to use netlink sockets from Python, but it's quite a nightmare. I hope I won't finally give up :)

What I'd like to do is reimplement the behaviour of "ip monitor link" using Python. I already looked at the source code of "ip monitor" and "iotop" (the first one for the proper implementation, the second one because it uses netlink within Py).
However, the code is quite complex, and I haven't yet been able to make a simple status monitor listening to a netlink socket.

Be assured that this is what WICD is heading to though ;)

David

Changed in wicd:
importance: Medium → High
assignee: nobody → David Paleino (dpaleino)
milestone: none → 1.7.4
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.