LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 11-30-2008, 03:42 PM   #1
JosipBroz
Member
 
Registered: Nov 2008
Location: Ljubljana
Distribution: OpenSuSE
Posts: 56

Rep: Reputation: 18
Conky new_mails and tcp_portmon issues


Hi everybody!
I've just posted this question on the openSuSE forum when it hit me that far more Conky users might read it if I post it here. So here it goes:
I spent this weekend fooling around with Conky and trying to customize it. Although it's a powerful little system monitor, Conky is by no means "easy on the resources" as stated in many places all over the web. Specifically, there are two issues I couldn't solve no matter how I tried:
1. The Conky home page on Sourceforge states that Conky can read your mail folders and notify you of new mails; well, I couldn't make the command new_mails work with Kmail no matter what. The command mails for listing your entire Inbox folder works seamlessly, problem is, I'd like to be notified of new mail only, I honestly don't care that my entire Inbox folder contains 17689 mails. I've also experimented with the command mailboxes and what not -- to no avail. Has anyone succeeded in making Conky work with Kmail without resorting to workarounds/scipts?
2. Several of the Conky configuration files circulating the web contain a section for listing your current incoming and outgoing connections. The snippet goes something like this:
Code:
Inbound Connections: ${tcp_portmon 1 32767 count} $alignr${color7}Local Service/Port
 ${tcp_portmon 1 32767 rhost 0} ${alignr} ${tcp_portmon 1 32767 lport 0}
 ${tcp_portmon 1 32767 rhost 1} ${alignr} ${tcp_portmon 1 32767 lport 1}
 ${tcp_portmon 1 32767 rhost 2} ${alignr} ${tcp_portmon 1 32767 lport 2}
 ${tcp_portmon 1 32767 rhost 3} ${alignr} ${tcp_portmon 1 32767 lport 3}
 ${tcp_portmon 1 32767 rhost 4} ${alignr} ${tcp_portmon 1 32767 lport 4}
Outbound Connections: ${tcp_portmon 32768 65535 count}$alignr Remote Service/Port$color1
 ${tcp_portmon 32768 65535 rhost 0} ${alignr} ${tcp_portmon 32768 65535 rport 0}
 ${tcp_portmon 32768 65535 rhost 1} ${alignr} ${tcp_portmon 32768 65535 rport 1}
 ${tcp_portmon 32768 65535 rhost 2} ${alignr} ${tcp_portmon 32768 65535 rport 2}
 ${tcp_portmon 32768 65535 rhost 3} ${alignr} ${tcp_portmon 32768 65535 rport 3}
 ${tcp_portmon 32768 65535 rhost 4} ${alignr} ${tcp_portmon 32768 65535 rport 4}
Basically, what it does is list five of your incoming and five of your outgoing connections by domain name and port. Well, I've noticed that this snippet (probably due to extensive DNS lookups that it performs?) slows down Conky almost to a halt; sometimes it takes as much as 10 seconds for it to just redraw its window, which is quite incredible on my dual-core 2GHz machine! Er... make that 15 seconds. Also, with the above snippet enabled, Conky will take as much as 3-4% of processor time, frequently reaching the first place in my Top window and surpassing even Xorg itself! Needless to say, all those problems go away if I delete the above snippet from Conky's config file.
Now, is it only me, or are those assertions about Conky being extremely light on your resources, just a plain lie? What are your personal experiences with Conky -- if any? Particularly regarding the above two issues?
P.S. OpenSuSE 11.0, KDE3.5, Conky, Kmail

Wow! I didn't know you could actually edit your post even a day later! I'm definitely starting to like this forum more and more.

Last edited by JosipBroz; 12-02-2008 at 11:26 AM.
 
Old 12-02-2008, 11:22 AM   #2
JosipBroz
Member
 
Registered: Nov 2008
Location: Ljubljana
Distribution: OpenSuSE
Posts: 56

Original Poster
Rep: Reputation: 18
Update.
I've actually traced the email issue back to a "bug" in Kmail, so it's not relevant anymore (although not "solved" by any means). A big sorry to the Conky developer(s). As for the "resource hogging", the question still stands. Doesn't anybody use Conky anymore?
 
Old 12-08-2008, 01:27 PM   #3
JosipBroz
Member
 
Registered: Nov 2008
Location: Ljubljana
Distribution: OpenSuSE
Posts: 56

Original Poster
Rep: Reputation: 18
Obviously not.
 
  


Reply

Tags
conky, dns, resource, tcp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with Conky Smitty67 Slackware 24 07-12-2009 04:30 PM
Need Help with Conky slickhare Linux - Newbie 7 05-06-2009 02:15 AM
Conky alignment issues Esahp Linux - Software 0 05-16-2008 01:33 AM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
conky help ahh_dee Linux - Software 2 10-28-2005 01:40 PM


All times are GMT -5. The time now is 10:26 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration