can't run 'top' any longer

Please post any bugs you have found
Post Reply
Message
Author
User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

can't run 'top' any longer

#1 Post by Botanic »

for some reason i get the following message :

Code: Select all

top: failed to read 'loadavg'
(top worked correctly first)
browsing the web didn't help me to fix it, i just found out that it refers to proc/loadavg
how to remedy to this problem?

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#2 Post by alienjeff »

In a terminal, type:

Code: Select all

cat /proc/loadavg
and see if any load info is displayed.

You didn't happen to, uh ... change anything in your installation recently, did you? If so, please advise.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

#3 Post by Botanic »

Code: Select all

# cat /proc/loadavg 
0.14 0.16 0.10 2/45 2173
no i didn't change anything in the installation... and i never go messing around with /proc and /dev

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#4 Post by alienjeff »

Okay ... /etc/loadavg at least exists! That's a start. Now at the command line, type: uptime to see if the load averages are listed in the response.
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#5 Post by zigbert »

I had the same problem until I installed Puppy 3.00

User avatar
alienjeff
Posts: 2265
Joined: Sat 08 Jul 2006, 20:19
Location: Winsted, CT - USA

#6 Post by alienjeff »

Thanks Ziebert - which leads me to query Botanic, what version of Puppy are you using?
[size=84][i]hangout:[/i] ##b0rked on irc.freenode.net
[i]diversion:[/i] [url]http://alienjeff.net[/url] - visit The Fringe
[i]quote:[/i] "The foundation of authority is based upon the consent of the people." - Thomas Hooker[/size]

User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

#7 Post by Botanic »

thanks alienjeff for your answers
i use Puppy 2.16.1, and 'uptime' does show the load average

Code: Select all

# uptime
 21:03:16 up 16 min, load average: 0.33, 0.36, 0.25

User avatar
Botanic
Posts: 240
Joined: Wed 05 Sep 2007, 10:54
Location: Toulouse, France

#8 Post by Botanic »

surprise! 'top' is working again :) some other weird things seem to happen with my Puppy, but always of minor importance.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#9 Post by MU »

its a language problem.

run top from such a script if you get that loadavg error:

/usr/local/bin/mytop

Code: Select all

#!/bin/bash

export LANG=C
top
Mark

Thor
Posts: 41
Joined: Wed 21 Feb 2007, 12:38

#10 Post by Thor »

Hello everybody:

Sorry for any errors language (I speak Spanish)

In 2.17.1 puppy to initiate "top" window opens and closes quickly.

Writing in console:

# Export LANG = C
# Top

Presents all data on the console.

How do you boot from the menu?

"mytop" does not exist.

Thanks.

Thor

Post Reply