kswapd used too much ?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

kswapd used too much ?

Postby pmithrandir » Jun 23rd, '13, 12:41

Hello,

Since the migration to mageia 3, (reinstall from scratch)I have the impression that the system is using much more swap than before.
I have 4HB of RAM, and I'm using the 64bits distribution.

But all the time I'm happen to copy a file(or a bunch of file for an amount like 10GB), my CPU(double core) goes crazy to 100%.
At the same time, the system start to swap.

I have 2 process at the same time : (in real they are using all CPU)
kswapd0 at 35% of CPU
mount.ntfs at 20%

Honestly, I have still 2GB of memory free, but the system is swapping... I don't understand.
Do you know if there is anything I can do , and if it's new ?

Thank you,
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: kswapd used too much ?

Postby pmithrandir » Jun 23rd, '13, 12:59

Maybe the problem is more on the config.

When the system has 50% of memory use, is it really time to swap ?
My config is that I have 4GB of RAM, and 4 of Swap...

Maybe I could just setup the level after which it start to swap a little bit higher ?
Or maybe I can find a way to use less memory during copy process(quite simple normally...)
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: kswapd used too much ?

Postby djennings » Jun 23rd, '13, 14:12

You can configure the 'swappiness' see
https://wiki.archlinux.org/index.php/Swap#Swappiness

But it should not be necessary. The default settings should be fine.
User avatar
djennings
 
Posts: 613
Joined: Jun 2nd, '11, 23:51
Location: Wokingham, UK

Re: kswapd used too much ?

Postby doktor5000 » Jun 23rd, '13, 15:02

Depends on what you copy. E.g. if you would try to write a 4GB image with dd somewhere, dd will try to read the whole 4GB file into RAM,
in which case it would start swapping on your configuration.

So which size/number of files do you copy and where?
I've understood that this happens with a bunch of small files, totaling at multiple GB's, writing to NTFS file systems?
I wouldn't expect much better performance, depending on the fill state, amount of free space and fragmentation writing to NTFS uses
quite a lot of CPU time and RAM, which may slow a system to a crawl.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: kswapd used too much ?

Postby pmithrandir » Jun 23rd, '13, 15:13

Hi,

To be more specific, I'm copying 12 - 20 files of 350 MBytes from my ext4 home partition(still 130GB free) to an 99% free ntfs hard drive (250GB free)

That what is unusual, copying 120000 files would not seems strange to overload the CPU, but 20 ?

I'm using the simple copy past from dolphin.
No dd involved

Thank you, I will check the swap configuration, just in case there is an issue.
Pierre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: kswapd used too much ?

Postby pmithrandir » Jun 23rd, '13, 15:20

here is my /etc/sysctl.conf file :

Code: Select all
[root@localhost ~]# cat /etc/sysctl.conf
net.ipv4.icmp_ignore_bogus_error_responses=1
net.ipv4.icmp_echo_ignore_broadcasts=0
net.ipv4.icmp_echo_ignore_all=0
net.ipv4.conf.all.rp_filter=1
net.ipv4.conf.all.log_martians=1

Isn't it suppose to contain informations about swapiness ?

Thanks,
PIerre
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30

Re: kswapd used too much ?

Postby doktor5000 » Jun 23rd, '13, 16:03

/etc/sysctl.conf only contains changes to the default settings. Run
Code: Select all
sysctl -a
as root to get the current setting of all tunables.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18068
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: kswapd used too much ?

Postby pmithrandir » Jun 23rd, '13, 16:18

hank you,
I get that :
Code: Select all
vm.stat_interval = 1
vm.swappiness = 60

I will try to change it to 35 or something like that... as I I'm always in teh 60% zone with firefox launch, but I'm never getting bigger than 3GB.
Creator of : http://www.jaiuneidee.net a "direct democracy" website for France.
User avatar
pmithrandir
 
Posts: 442
Joined: May 4th, '11, 19:30


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest