Welcome, Guest.
We would like to wish you all a
A MERRY 2020!

Forum maintenance is underway.
Registrations are temporarily disabled until further notice.

Author Topic: XFCE GENMON FUN  (Read 59 times)

Offline CwF

  • Elite Member
  • *****
  • Posts: 393
« on: January 13, 2020, 01:18:55 PM »
While I enjoy a large pretty cpu graph, it's a little obnoxious once its larger than an EQ display. I thought for awhile on the info I really wanted to know from my beast and reduced it, boiled it down to almost nothing.

Add a genmon to an xfce panel and point it to your newly created /usr/bin/uptime.sh

Code: [Select]
echo "<txt>"$(VAR="$(cat /proc/loadavg)"
FIL=$(cat /proc/loadavg | cut -d '.' -f 2)
PRC=$(cat /proc/loadavg | cut -d ' ' -f 4)
echo "$OAL$FIL $PRC")"</txt>"
echo "<tool>"$(uptime -p)"</tool>"

Anyway, that's how I like it.Condensed!
first number is the last minutes load average, 1.00=1 core of work.
second number is the last five minutes of load average in whole cores.
then the last set are executing threads/might want to execute threads.

Now on the uptime mouse hover display, I'd like to maybe ask the author of uptime to add months to break up the weeks, and looking ahead add a year field too. Then maybe drop the "up" and append "ago, you booted this computer" and it could go across the screen like a story.

"1 year, 3 months, 2 weeks, 5 days, 16 hours, 18 minutes ago, you booted this computer"

I suppose we could add "and 32 seconds" to try and get it all the way across the screen...

Offline Crimson

  • Contributor
  • *******
  • Posts: 536
  • Defeating a sandwich only makes it tastier.
    • «FC» FunHouse Clan
« Reply #1 on: January 18, 2020, 10:35:49 AM »
Geeze, let's see Windows stay on that long. My friends server can't stay on for longer than a week because of those beloved forced updates. Rejoice my fellow penguins!
HP EliteBook 850 G3 i5-6300U Intel HD Graphics 520 16GB DDR4 512GB M.2 NVMe 480GB SSD

Offline CwF

  • Elite Member
  • *****
  • Posts: 393
« Reply #2 on: January 18, 2020, 11:13:58 AM »
Does anybody find these numbers useful? They may be of more interest on systems like mine running a hypervisor instead of a single user system. I'm interested mostly in the process counts.

My example was a wishful example I do expect to see. Some may scoff at the hypersior/vm model at being more reliable with all the complexity, but no it's seriously more stable. VM's have issues all the time, part of their purpose, and are rebooted and forced off on a regular basis. The host just keeps on humming. I usually do a courtesy reboot on the host every so often for something.

A real one in traditional output still pretty impressive:

Code: [Select]
$  uptime
 09:06:47 up 85 days, 18:11,  3 users,  load average: 1.20, 1.07, 1.11

I do see core loads up to mid 20's on occasion...
Honestly, a XP VM often makes it the full span of host life, since with all it does it is also the systems intranet samba server and a common drive is a pae memory ram drive.

Offline Spatry

  • Benevolent Dictator
  • Administrator - Sysop
  • **********
  • Posts: 5503
  • Cup of Linux Founder
    • Cup of Linux
« Reply #3 on: January 20, 2020, 10:34:23 AM »
Yup... My Opensimulator server can boast equivalent up-times although I will admit that I restart the server software daily from within a tmux instance. Got to love the longevity and reliability of Linux!
Windows assumes the user is an idiot... Linux DEMANDS Proof!