You are not logged in.

#1 2010-08-17 18:02:32

maroxe
Member
Registered: 2009-02-05
Posts: 53

Emacs lagging whan saving files

Hi,
I have noticed a strange problem with emacs. Most of time, if i edit heavily a file(heavily = +4 lines), Emacs takes from 2 to 3 secs to save the file.
This is really an annoying problem beacause i use emacs for coding and i need to save files regularly to test my program.
I haven't changed emacs  configuration file when this problem first appeared.
Any help pls?

Offline

#2 2010-08-17 18:39:12

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

Re: Emacs lagging whan saving files

Grrr
Sorry, wrong thread.

Last edited by karol (2010-08-17 18:39:35)

Offline

#3 2010-08-18 01:56:18

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Emacs lagging whan saving files

all related disk operation are slow sad

Offline

#4 2010-08-18 09:37:01

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

Re: Emacs lagging whan saving files

maroxe wrote:

all related disk operation are slow sad

I'm not sure what you mean by that: is the interface slow or do you experience some heavy I/O? I have no idea how emacs works, but you can check for the latter with iotop.

Offline

#5 2010-08-19 05:24:26

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Emacs lagging whan saving files

yeah, some apps became inresponsive for 2 or 3 seconds (not just emacs), i beleave it's I/O related problem.
iotop give this for emacs:

23715 be/4 maroxe       16.00 K      8.00 K  0.00 %  10.23 % emacs

I don't know if it means anything

Offline

#6 2010-08-19 05:36:31

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

Re: Emacs lagging whan saving files

Unresponsive app is generally a sign of high cpu usage, not I/O, but '10.23 % emacs' looks pretty high indeed.

Offline

#7 2010-08-19 20:22:42

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Emacs lagging whan saving files

i let iotop opened. When emacs is lagging when saving file, IO column is 99.99 % for emacs.

Offline

#8 2010-08-19 20:25:31

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

Re: Emacs lagging whan saving files

maroxe wrote:

i let iotop opened. When emacs is lagging when saving file, IO column is 99.99 % for emacs.

Let me say again, that I'm no guru BUT I hardly ever notice any app taking more that 2 % for a second or two. Usually there are short bursts of 0.5 %.
Does the cpu usage spikes too? You can use htop to check.

Offline

#9 2010-08-19 20:35:02

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Emacs lagging whan saving files

no, my cpu usage is constant.
Even when reading videos, i get some lags  from time to time. So it's hdd problem
This is not a new installation. but the problem is new.

Offline

#10 2010-08-19 20:36:45

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

Re: Emacs lagging whan saving files

maroxe wrote:

no, my cpu usage is constant.
Even when reading videos, i get some lags  from time to time. So it's hdd problem
This is not a new installation. but the problem is new.

Maybe you mount it in a funny way?

Offline

#11 2010-08-19 20:42:24

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Emacs lagging whan saving files

I don't think so, it's mounted as usual,( = default configuration after installation)

Offline

#12 2010-08-19 20:44:46

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

Re: Emacs lagging whan saving files

maroxe wrote:

I don't think so, it's mounted as usual,( = default configuration after installation)

Can you check how your emacs behaves on another drive / box? Or use vim ;P

Offline

#13 2010-08-19 20:47:22

maroxe
Member
Registered: 2009-02-05
Posts: 53

Re: Emacs lagging whan saving files

karol wrote:
maroxe wrote:

I don't think so, it's mounted as usual,( = default configuration after installation)

Can you check how your emacs behaves on another drive / box? Or use vim ;P

I think It's not just emacs problem, it's more general. For example, autocompletition lags too for about 3 seconds, chromium does the same ...

Offline

#14 2010-08-19 20:50:41

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

Re: Emacs lagging whan saving files

maroxe wrote:
karol wrote:
maroxe wrote:

I don't think so, it's mounted as usual,( = default configuration after installation)

Can you check how your emacs behaves on another drive / box? Or use vim ;P

I think It's not just emacs problem, it's more general. For example, autocompletition lags too for about 3 seconds, chromium does the same ...

OK, the vim part was just a joke, but if you have more that one drive, you can check whether editing a file on another drive has the same problems. I think the easiest way to check will be with emacs.

Offline

#15 2010-08-19 22:12:22

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Emacs lagging whan saving files

I think it is time to check the hardware. You should probably check the disks with the S.M.A.R:T. tools (package smartmontools from extra).


To know or not to know ...
... the questions remain forever.

Offline

Board footer

Powered by FluxBB