473,549 Members | 2,592 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Swap usage on RH 9

I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory and use the available RAM. This problem is especially
present when starting the MySQL server and executing lots of big
queries... Swap file grows and grows and is never released even
though there is available memory.

When the MySQL server is not loaded, I still have 152Mb of swap used
and it goes up to 377Mb when using MySQL! Slowly but surely the swap
grows bigger and bigger... Am I having hallucinations or there's
something obvious I am mising here? Any hint/suggestion/explanation
on this problem?

Environment:

OS: Linux RedHat 9
Kernel: 2.4.25-040218
Intel Pentium 4 2.4 Ghz
512 Mb DDR RAM
40 Gb IDE disk

MySQL 3.32.58

Here's the output of command top:
=============== =======
09:50:13 up 23 days, 20:42, 6 users, load average: 0.08, 0.03,
0.01
101 processes: 100 sleeping, 1 running, 0 zombie, 0 stopped
CPU states: 3.8% user 1.0% system 0.0% nice 0.0% iowait 95.1%
idle
Mem: 507036k av, 501176k used, 5860k free, 0k shrd,
65568k buff
133504k active, 288820k inactive
Swap: 787176k av, 154268k used, 632908k free
322128k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU
COMMAND
23227 root 19 0 1196 1196 876 S 1.9 0.2 0:03 0 top
23270 root 14 0 1160 1160 852 R 1.9 0.2 0:00 0 top
1 root 8 0 104 72 52 S 0.0 0.0 0:23 0 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 0
keventd
3 root 19 19 0 0 0 SWN 0.0 0.0 0:00 0
ksoftirqd_CPU0
4 root 9 0 0 0 0 SW 0.0 0.0 13:32 0
kswapd
5 root 9 0 0 0 0 SW 0.0 0.0 0:04 0
bdflush
6 root 9 0 0 0 0 SW 0.0 0.0 0:09 0
kupdated
7 root 9 0 0 0 0 SW 0.0 0.0 0:04 0
pagebufd
8 root 9 0 0 0 0 SW 0.0 0.0 0:00 0
xfslogd/0
9 root 9 0 0 0 0 SW 0.0 0.0 0:00 0
xfsdatad/0
11 root 9 0 0 0 0 SW 0.0 0.0 7:51 0
kjournald
604 root 9 0 0 0 0 SW 0.0 0.0 0:00 0
kjournald
919 root 9 0 628 452 380 S 0.0 0.0 0:03 0
dhclient
959 root 9 0 252 208 192 S 0.0 0.0 0:04 0
syslogd
963 root 9 0 88 40 40 S 0.0 0.0 0:00 0
klogd
1042 named 9 0 1140 732 564 S 0.0 0.1 0:23 0
named
1060 root 8 0 352 216 172 S 0.0 0.0 0:01 0 sshd
1074 root 9 0 588 448 444 S 0.0 0.0 0:00 0
xinetd
1091 ntp 9 0 2404 2404 2172 S 0.0 0.4 0:54 0 ntpd
1201 root 9 0 17504 4 0 S 0.0 0.0 0:00 0
spamd
1219 root 9 0 256 4 0 S 0.0 0.0 0:00 0
stunnel
1277 root 9 0 1328 132 112 S 0.0 0.0 1:38 0
httpsd
1297 root 9 0 192 164 124 S 0.0 0.0 0:02 0
crond
1426 xfs 9 0 2240 92 68 S 0.0 0.0 0:00 0 xfs
1449 mailman 9 0 2864 188 184 S 0.0 0.0 0:00 0
python
1454 root 9 0 76 32 28 S 0.0 0.0 0:00 0
mingetty
1455 root 9 0 76 32 28 S 0.0 0.0 0:00 0
mingetty
1456 root 9 0 76 32 28 S 0.0 0.0 0:00 0
mingetty
1457 root 9 0 76 32 28 S 0.0 0.0 0:00 0
mingetty
1458 root 9 0 76 32 28 S 0.0 0.0 0:00 0
mingetty
1459 root 9 0 76 32 28 S 0.0 0.0 0:00 0
mingetty
1460 root 9 0 76 32 28 S 0.0 0.0 0:00 0
agetty
1461 mailman 9 0 3020 1120 312 S 0.0 0.2 3:20 0
python
1462 mailman 9 0 3028 1144 652 S 0.0 0.2 0:05 0
python
1463 mailman 9 0 3060 1104 348 S 0.0 0.2 3:15 0
python
1464 mailman 9 0 3060 1176 352 S 0.0 0.2 3:16 0
python
1465 mailman 9 0 3096 1152 348 S 0.0 0.2 3:18 0
python
1466 mailman 9 0 3140 1188 356 S 0.0 0.2 3:22 0
python
1467 mailman 9 0 3052 1052 352 S 0.0 0.2 3:20 0
python
4070 popuser 9 0 17148 8 4 S 0.0 0.0 0:00 0
spamd
4072 popuser 9 0 17148 8 4 S 0.0 0.0 0:00 0
spamd
16291 root 9 0 3036 652 624 S 0.0 0.1 0:56 0
httpd
18909 root 9 0 456 404 400 S 0.0 0.0 0:00 0
couriertcpd
18912 root 9 0 268 232 228 S 0.0 0.0 0:00 0
courierlogger
18920 root 8 0 456 404 400 S 0.0 0.0 0:00 0
couriertcpd
18922 root 9 0 268 232 228 S 0.0 0.0 0:00 0
courierlogger
18929 root 9 0 460 428 404 S 0.0 0.0 0:00 0
couriertcpd
18931 root 9 0 420 408 364 S 0.0 0.0 0:00 0
courierlogger
18939 root 9 0 444 392 388 S 0.0 0.0 0:00 0
couriertcpd
18943 root 9 0 264 228 224 S 0.0 0.0 0:00 0
courierlogger
19089 qmails 9 0 352 336 280 S 0.0 0.0 0:00 0
qmail-send
19091 qmaill 9 0 412 400 396 S 0.0 0.0 0:00 0
splogger
19092 root 9 0 332 304 292 S 0.0 0.0 0:00 0
qmail-lspawn
19093 qmailr 9 0 300 228 224 S 0.0 0.0 0:00 0
qmail-rspawn
19094 qmailq 9 0 300 272 268 S 0.0 0.0 0:00 0
qmail-clean
21849 root 9 0 1100 1100 944 S 0.0 0.2 0:00 0
safe_mysqld
21870 mysql 9 0 6240 6240 2384 S 0.0 1.2 0:01 0
mysqld
22955 root 9 0 1456 1456 1108 S 0.0 0.2 0:00 0 bash
23000 root 9 0 1456 1456 1108 S 0.0 0.2 0:00 0 bash
23045 root 9 0 1456 1456 1108 S 0.0 0.2 0:00 0 bash
23090 root 9 0 1452 1452 1104 S 0.0 0.2 0:00 0 bash
23135 root 9 0 1468 1468 1112 S 0.0 0.2 0:00 0 bash
23180 root 11 0 1464 1464 1108 S 0.0 0.2 0:00 0 bash
23229 root 9 0 732 732 600 S 0.0 0.1 0:00 0
mysqladmin
23234 root 9 0 2152 2152 1436 S 0.0 0.4 0:00 0
mysql
23236 root 9 0 1712 1712 1388 S 0.0 0.3 0:00 0
mysql
=============== =============

Thank you
Jul 19 '05 #1
9 2209
Benoit St-Jean wrote:
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory ...


Ideally, you don't want the system to have to swap at all, and the
solution to that is add more RAM. Maybe you should increase your RAM up
to 1GB. If your system does not need to swap - then you will not to be
concerned about any "swap bug", as well as getting the better performance.

--
Regards,
Rodger
---
Fedora: Registered Linux User #285004.
---
"Do, or do not. There is no try." -- A Jedi Master.
---
Jul 20 '05 #2
Benoit St-Jean wrote:
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory ...


Ideally, you don't want the system to have to swap at all, and the
solution to that is add more RAM. Maybe you should increase your RAM up
to 1GB. If your system does not need to swap - then you will not to be
concerned about any "swap bug", as well as getting the better performance.

--
Regards,
Rodger
---
Fedora: Registered Linux User #285004.
---
"Do, or do not. There is no try." -- A Jedi Master.
---
Jul 20 '05 #3
Benoit St-Jean wrote:
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory ...


Ideally, you don't want the system to have to swap at all, and the
solution to that is add more RAM. Maybe you should increase your RAM up
to 1GB. If your system does not need to swap - then you will not to be
concerned about any "swap bug", as well as getting the better performance.

--
Regards,
Rodger
---
Fedora: Registered Linux User #285004.
---
"Do, or do not. There is no try." -- A Jedi Master.
---
Jul 20 '05 #4
RodgerH <ro*******@yaho o.com> wrote in message news:<AH******* *************@t wister.southeas t.rr.com>...
Benoit St-Jean wrote:
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory ...


Ideally, you don't want the system to have to swap at all, and the
solution to that is add more RAM. Maybe you should increase your RAM up
to 1GB. If your system does not need to swap - then you will not to be
concerned about any "swap bug", as well as getting the better performance.


Well, that's the problem. Even if you have 1Gb of RAM, it just
doesn't use it and prefers to fill the swap!
Jul 20 '05 #5
RodgerH <ro*******@yaho o.com> wrote in message news:<AH******* *************@t wister.southeas t.rr.com>...
Benoit St-Jean wrote:
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory ...


Ideally, you don't want the system to have to swap at all, and the
solution to that is add more RAM. Maybe you should increase your RAM up
to 1GB. If your system does not need to swap - then you will not to be
concerned about any "swap bug", as well as getting the better performance.


Well, that's the problem. Even if you have 1Gb of RAM, it just
doesn't use it and prefers to fill the swap!
Jul 20 '05 #6
RodgerH <ro*******@yaho o.com> wrote in message news:<AH******* *************@t wister.southeas t.rr.com>...
Benoit St-Jean wrote:
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory ...


Ideally, you don't want the system to have to swap at all, and the
solution to that is add more RAM. Maybe you should increase your RAM up
to 1GB. If your system does not need to swap - then you will not to be
concerned about any "swap bug", as well as getting the better performance.


Well, that's the problem. Even if you have 1Gb of RAM, it just
doesn't use it and prefers to fill the swap!
Jul 20 '05 #7
Jan
bs*****@yahoo.c om (Benoit St-Jean) wrote in message news:<35******* *************** ****@posting.go ogle.com>...
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory and use the available RAM. This problem is especially
present when starting the MySQL server and executing lots of big
queries... Swap file grows and grows and is never released even
though there is available memory.


I think it got fixed - when I switched to kernel 2.4.25 on my RH9, the
hard drive stopped thrashing like crazy which is what it used to do
any time I edited a very large image with GIMP.

Jan Bielawski
Jul 20 '05 #8
Jan
bs*****@yahoo.c om (Benoit St-Jean) wrote in message news:<35******* *************** ****@posting.go ogle.com>...
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory and use the available RAM. This problem is especially
present when starting the MySQL server and executing lots of big
queries... Swap file grows and grows and is never released even
though there is available memory.


I think it got fixed - when I switched to kernel 2.4.25 on my RH9, the
hard drive stopped thrashing like crazy which is what it used to do
any time I edited a very large image with GIMP.

Jan Bielawski
Jul 20 '05 #9
Jan
bs*****@yahoo.c om (Benoit St-Jean) wrote in message news:<35******* *************** ****@posting.go ogle.com>...
I am wondering if the "swap bug" is present on my kernel/version of
RedHat 9 as described at:
http://bugzilla.redhat.com/bugzilla/...g.cgi?id=89226

It looks like the OS prefers to fill the swap instead of releasing the
"unused" memory and use the available RAM. This problem is especially
present when starting the MySQL server and executing lots of big
queries... Swap file grows and grows and is never released even
though there is available memory.


I think it got fixed - when I switched to kernel 2.4.25 on my RH9, the
hard drive stopped thrashing like crazy which is what it used to do
any time I edited a very large image with GIMP.

Jan Bielawski
Jul 20 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
392
by: Benoit St-Jean | last post by:
I am wondering if the "swap bug" is present on my kernel/version of RedHat 9 as described at: http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=89226 It looks like the OS prefers to fill the swap instead of releasing the "unused" memory and use the available RAM. This problem is especially present when starting the MySQL server and...
1
4343
by: Jeff Roughgarden | last post by:
We are hosting a 140 GB database on SQL Server Version 7 and Windows 2000 Advanced Server on an 8-cpu box connected to a 15K rpm RAID 5 SAN, with 4 GB of RAM (only 2 GB of which seem to be visible to the OS) and a 4 GB swap file. (The PeopleSoft CIS application will not permit us to upgrade to SQL 2K.) We recently upgraded the server from 4...
2
4782
by: cnprasad | last post by:
Hello, I have ntoiced something peculiar happening on our db2 instance. It serves as the backend rdbms for a java application that is hosted on websphere app server. The app server has a connection pool that can grow upto 250 connection. The database has also been configuired to handle this many connections. The db2 server has 2GB of...
9
6690
by: Jongmin Lee | last post by:
Hi Everybody, I have very simple code snippet to explain my problem. Class "Swap" is construncted in "Main" with two initial variables. Later, "Swap" class is going to swap those two variables. How to implement this Swap Class? Because C# doesn't have pointer, I can't do.
18
5109
by: Joe Lester | last post by:
This thread was renamed. It used to be: "shared_buffers Question". The old thread kind of died out. I'm hoping to get some more direction by rephrasing the problem, along with some extra observations I've recently made. The core of the problem is that Postgres is filling up my hard drive with swap files at the rate of around 3 to 7 GB per...
4
4091
by: Niels Dekker (no reply address) | last post by:
When calling swap as follows (as recommanded in Effective C++, 3rd Edition, by Scott Meyers), what swap is chosen to be called? using std::swap; swap(a, b); Suppose there is a global ::swap function provided, whose parameter type matches closer to the type of a and b than any of the std::swap overloads does. Will this ::swap be called, or...
9
6182
by: ma740988 | last post by:
Consider: # include <vector> # include <iostream> # include <cstdlib> # include <ctime> bool ispow2i ( double n ) {
4
3273
by: George2 | last post by:
Hello everyone, The following swap technique is used to make assignment operator exception safe (means even if there is exception, the current object instance's state is invariant). It used a temporary object "temp" in this sample, and assignment is made on a to temp ar first. Even if there is exception, the current this object's state...
11
2912
by: Dennis Jones | last post by:
Hi all, 1) Let's say you have two char 's of the same size. How would you write a no-fail swap method for them? For example: class Test { char s; void swap( Test &rhs ) {
0
1666
Subsciber123
by: Subsciber123 | last post by:
Is it possible to disable a swap partition for normal memory usage but allow it to be used for suspend-to-disk? This would be useful in the case that a program decides to explode and use up all the memory. This would give it a memory error instead of wasting time swapping data out.
0
7527
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7726
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7485
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6052
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3505
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3488
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1953
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1064
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.