LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   gedit very slow (https://www.linuxquestions.org/questions/linux-software-2/gedit-very-slow-380210/)

janux 11-05-2005 10:29 AM

gedit very slow
 
hi,

recently my gedit got from working fine to being verry slow.
I tracked it down to a problem with my new choosen theme AluminumAlloy-Volcanic.

It's a problem with the scrollbar, as long as there is no scrollbar, gedit is working fine.
But when the text gets longer and the scrollbar appears it takes more than a full second to enter a new line because gedit is repainting the scrollbar.

When I change to the "simple" theme the problem disappears.
You might think it's a problem with the "AluminumAlloy-Volcanic" theme but I'm getting the same problem with other themes which use graphics on the scrollbar.

And then there is eclipse with the internal editor which does not make any problems at all using the any theme an scrollbar.

So it might be a bug in gedit.
Has anyone encounterd the same problem?

I reallly do not want to use a simple theme just becouse of gedit.

jan

TruongAn 11-05-2005 11:30 AM

I don't see any problem although I use the AluminumAlloy-Volcanic.
How many ram do you have, and how fast your CPU are?

SlackerLX 11-05-2005 11:57 AM

This problem can be RAM related because of HEAVY graphic display of aluminum-alloy. Track your CPU usage via "top" program and see if it either CPU or RAM. If your CPU is at low percentage then it's definitely lack of RAM

janux 11-06-2005 05:43 PM

I have a Pentium M 1.7Ghz with 512MB RAM.
OK 512MB is not the world, but it should definitely be enough for runnig X and gedit.

Also the problem occurs only in gedit all other application are running fine (e.g. Gnome terminal with the same scrollbar)

Here some output of top:
Code:

top - 00:36:33 up  8:02,  5 users,  load average: 0.12, 0.18, 0.19
Tasks:  91 total,  1 running,  90 sleeping,  0 stopped,  0 zombie
Cpu(s):  1.7% us,  0.3% sy,  0.0% ni, 98.0% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:    515256k total,  392848k used,  122408k free,    40348k buffers
Swap:  1534672k total,        0k used,  1534672k free,  210136k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
23171 root      5 -10  156m  24m 7416 S  1.0  4.8  0:54.41 Xorg
 6136 root      15  0  5960 2292 1460 S  0.3  0.4  0:12.43 cupsd
23400 jan      15  0 37372  15m 9664 S  0.3  3.0  0:05.83 gnome-terminal
    1 root      16  0  1596  540  472 S  0.0  0.1  0:00.54 init
    2 root      34  19    0    0    0 S  0.0  0.0  0:00.00 ksoftirqd/0
    3 root      10  -5    0    0    0 S  0.0  0.0  0:00.19 events/0
    4 root      11  -5    0    0    0 S  0.0  0.0  0:00.00 khelper


SlackerLX 11-06-2005 05:48 PM

As you see your CPU is only 1.7%, which is fine on stand-by mode. Run your gedit and check if actually gedit is taking resources. Maybe is not

janux 11-07-2005 06:57 AM

ok, while pressing enter in gedit the cpu load is increasing drastically:

Code:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 6884 root      6 -10 52816  32m 6976 S 53.2  6.4  2:08.98 Xorg
 7258 jan      18  0 35188  18m  11m R 42.3  3.7  0:47.77 gedit
 7195 jan      15  0  101m  32m  14m S  2.0  6.5  0:09.81 firefox-bin
 7246 jan      16  0 36500  13m 9192 R  1.7  2.7  0:04.00 gnome-terminal
    1 root      16  0  1596  536  472 S  0.0  0.1  0:00.53 init
    2 root      34  19    0    0    0 S  0.0  0.0  0:00.00 ksoftirqd/0
    3 root      10  -5    0    0    0 S  0.0  0.0  0:00.03 events/0
    4 root      11  -5    0    0    0 S  0.0  0.0  0:00.00 khelper
    5 root      10  -5    0    0    0 S  0.0  0.0  0:00.00 kthread

Still my CPU should not be to slow to run gedit.
Especially since other applications are runnig fine.

jan

SlackerLX 11-07-2005 02:54 PM

Quote:

Originally posted by janux
42.3 3.7 0:47.77 gedit
I don't know. change metacity probably
Mine is such:

Code:

3195 root      15  0  160m  28m 142m S  6.0  3.2  29:33.02 Xorg
 3500 slackerl  15  0 63276  33m  26m S  1.7  3.8  30:11.54 amule
 3406 slackerl  15  0 18312  11m  15m S  1.0  1.3  0:11.34 wnck-applet
 3347 slackerl  15  0 13644 9396  11m S  0.7  1.0  0:17.35 metacity
 3351 slackerl  15  0 23592  15m  17m S  0.3  1.7  0:06.18 gnome-panel
 3412 slackerl  16  0 18148  11m  14m S  0.3  1.3  0:01.95 gnome-keyboard-
25881 slackerl  15  0 99.0m  30m  29m S  0.3  3.4  0:04.00 firefox-bin
25899 slackerl  15  0 27424  10m  16m S  0.3  1.2  0:00.60 gnome-terminal
25906 slackerl  15  0 23528  14m  19m S  0.3  1.6  0:00.75 gedit
    1 root      16  0  1812  656 1600 S  0.0  0.1  0:00.72 init

As you see gedit takes only 0.3% of CPU


All times are GMT -5. The time now is 12:02 AM.