You are not logged in.

#1 2011-10-29 10:55:23

robotrobert
Member
Registered: 2011-10-29
Posts: 16

Terminal responding slow

* Problem:
  * terminal commands respond sometimes slow, sometimes ok

* Enviroment:
  * desktop + session: openbox, openbox-session
  * used terminals: terminal, sakura
  * echo $TERM outputs: xterm ( i've googled around and i think thats allright, right? )
  * echo $DISPLAY: :0.0

* Example:
  * trying to edit a file with VIM, or save it
  * loading a MAN page

Offline

#2 2011-10-29 11:03:28

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Terminal responding slow

Have you checked if updatedb is indexing when you're experiencing the slow response?

Offline

#3 2011-10-29 11:09:37

robotrobert
Member
Registered: 2011-10-29
Posts: 16

Re: Terminal responding slow

Ashren wrote:

Have you checked if updatedb is indexing when you're experiencing the slow response?

* Nope, how do i do that? I'm guessing i should tail -f updatedbs log?

* I've ran a find for updatedb: find / -name updatedb
  * Output:
    /etc/cron.daily/updatedb
    /usr/bin/updatedb

Offline

#4 2011-10-29 11:15:08

Ashren
Member
From: Denmark
Registered: 2007-06-13
Posts: 1,229
Website

Re: Terminal responding slow

You can check with:

top

and/or

ps -ef | grep updatedb

Offline

#5 2011-10-29 11:38:15

robotrobert
Member
Registered: 2011-10-29
Posts: 16

Re: Terminal responding slow

Ashren wrote:

You can check with:

top

and/or

ps -ef | grep updatedb

Well its not taking that long, i mean it takes like 1-2 second, but this never occured before, i was using - afraid to say.. - xubuntu.

Anyway i've not seen anything to with updatedb in the output of

top

Last edited by robotrobert (2011-10-29 11:38:27)

Offline

#6 2011-10-29 13:49:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Terminal responding slow

I would focus on I/O in general - maybe your backups are running?
Use iotop to see what's writing to disc and how much.

The slow response is just when you start the terminal or all the time?
man-db needs to be loaded into memory IIRC so the first time you run 'man foo' will be slow.. Next time 'foo bar' will use the cached data so it should be very fast (unless you run out of RAM and your system is heavily swapping).

Offline

Board footer

Powered by FluxBB