Skip to contentSkip to conversation

2.6.14.5 / swapping / killing random apps

DISCUSSION Trilight 2 participants 5 messages Dec 29, 2005

lore
Share & tools
lore

Trilight

author
#0 lore raw

Hiya all,

I was wondering about the following;

kernel: 2.6.14.5 / vanilla

If a system with say a swap of 2GB on a fast drive and like 260MB is actively used for swapping, could it cause certain applications to crash ? I noticed that the when swapping occurs, usualy above 200MB then random apps start to crash. Sometimes gnome-terminal, gnome-panel, xchat, metacity and so on. It happens a few times in usually 48 hours.

The system has 512MB ram, ECC , checked and cleared. The system can be booted with m$ xp or freebsd but crashes do not occur even under heavy load. So that's why i'm thinking something is causing this behaviour in linux. I also have to say that dmcrypt was used for the swap but that caused the crashes to increase, so dmcrypt is not used anymore just a normal swap and crashes decreased to "rare" within 24 hours.

Or is it "normal" that the crash risk of running apps increases the more swapping is done ?

I plan to upgrade the memory to 1.5GB anyway, but this issue is kinda bothering me.

Thanks in advance for any input !

Mark

#1 lore raw
Quoted 10 lines · Trilight

Hiya all,

I was wondering about the following;

kernel: 2.6.14.5 / vanilla

If a system with say a swap of 2GB on a fast drive and like 260MB is actively used for swapping, could it cause certain applications to crash ?

It shouldn't.

Quoted 12 lines

I noticed that the when swapping occurs, usualy above 200MB then random apps start to crash. Sometimes gnome-terminal, gnome-panel, xchat, metacity and so on. It happens a few times in usually 48 hours.

The system has 512MB ram, ECC , checked and cleared. The system can be booted with m$ xp or freebsd but crashes do not occur even under heavy load. So that's why i'm thinking something is causing this behaviour in linux. I also have to say that dmcrypt was used for the swap but that caused the crashes to increase, so dmcrypt is not used anymore just a normal swap and crashes decreased to "rare" within 24 hours.

Quoted 3 lines

Or is it "normal" that the crash risk of running apps increases the more swapping is done ?

No. Not unless you exhaust *all* you RAM+Swap - if the machine goes OOM then the OOM-Killer will kick in and kill one or more applications in order to keep the system alive, but from your description (only 260MB Swap used out of 2GB) that does not seem to be the case here.

Quoted 5 lines

I plan to upgrade the memory to 1.5GB anyway, but this issue is kinda bothering me.

Thanks in advance for any input !

Only thing I can think of would be a corrupted swap partition/swap-file or bad blocks on the harddrive in the areas used to hold the swap. That could be one possible explanation and would also explain that other OS's on your box doesn't crash since they don't use the same parts of the disk for swap.

Maybe someone else has other possible explanations.

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

author
#2 lore raw
Quoted 58 lines · Jesper Juhl
Quoted 10 lines · Trilight

Hiya all,

I was wondering about the following;

kernel: 2.6.14.5 / vanilla

If a system with say a swap of 2GB on a fast drive and like 260MB is actively used for swapping, could it cause certain applications to crash ?

It shouldn't.

Quoted 13 lines

I noticed that the when swapping occurs, usualy above 200MB then random apps start to crash. Sometimes gnome-terminal, gnome-panel, xchat, metacity and so on. It happens a few times in usually 48 hours.

The system has 512MB ram, ECC , checked and cleared. The system can be booted with m$ xp or freebsd but crashes do not occur even under heavy load. So that's why i'm thinking something is causing this behaviour in linux. I also have to say that dmcrypt was used for the swap but that caused the crashes to increase, so dmcrypt is not used anymore just a normal swap and crashes decreased to "rare" within 24 hours.

Quoted 3 lines

Or is it "normal" that the crash risk of running apps increases the more swapping is done ?

No. Not unless you exhaust *all* you RAM+Swap - if the machine goes OOM then the OOM-Killer will kick in and kill one or more applications in order to keep the system alive, but from your description (only 260MB Swap used out of 2GB) that does not seem to be the case here.

Quoted 5 lines

I plan to upgrade the memory to 1.5GB anyway, but this issue is kinda bothering me.

Thanks in advance for any input !

Only thing I can think of would be a corrupted swap partition/swap-file or bad blocks on the harddrive in the areas used to hold the swap. That could be one possible explanation and would also explain that other OS's on your box doesn't crash since they don't use the same parts of the disk for swap.

Maybe someone else has other possible explanations.

Quoted 11 lines

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

Thanks for your reply !

I just did bad block check and it turns out to be good.

If there is anything else i can check i'm all ears hehe

#3 lore raw

On 12/29/05, Trilight <[email protected]> wrote:
<!-- snip -->

Quoted 5 lines

I just did bad block check and it turns out to be good.

If there is anything else i can check i'm all ears hehe

Have you checked you log files/dmesg for clues after an occourance of the problem?
Have you checked the logs for interresting messages leading up to the problem?

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

author
#4 lore raw
Quoted 8 lines · Jesper Juhl

On 12/29/05, Trilight <[email protected]> wrote:
<!-- snip -->

Quoted 4 lines

I just did bad block check and it turns out to be good.

If there is anything else i can check i'm all ears hehe

Quoted 10 lines

Have you checked you log files/dmesg for clues after an occourance of the problem?
Have you checked the logs for interresting messages leading up to the problem?

--
Jesper Juhl <[email protected]>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html

I did, but there is no sign in the logs indicating something about the app which crashed at that moment.