LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-29-2006, 06:03 AM   #1
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Rep: Reputation: 15
Problem accessing SWAP space by processes


Hi!

I have SuSe Linux 10.1 installed on a dual processor (Intel Xeon - No.s) server with 4GB RAM. I have put 2GB of swap space (I also tried 12GB SWAP space but the problem was same).

The swap space is shown by

system-> monitor-> memory
as well as by "free" comand. It is also there in /etc/fstab and is shown in "fdisk -l"

BUT this swap space is not acceessed by the code I am running.

e.g.

I have another system (P-IV, -1GB RAM, 2GB SWAP space) with same OS and when I run my code for a large data set, this system shows a full "Physical Memory" and then "SWAP" space is also used (upto 70%)


When I run my code with the same data-set on 4GB-RAM machine, it gives an error "insufficient memory" and exists. When run with a slightly smaller data set, it shows 74% usage of "Physical Memory" and 100% free SWAP space. BUT when I increase data-set, OS does not access swap, rater exits the program.

I have checked swap space, it is ON (swapon) and still not accessible!

Plesae provide me help on this issue !

a lot of thanks in advance

ajit,
indore
 
Old 11-30-2006, 12:35 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
What is the output of 'uname -a'?
 
Old 11-30-2006, 10:57 AM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
weird !
kswapd is running and healthy ?
 
Old 11-30-2006, 10:11 PM   #4
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver
What is the output of 'uname -a'?

It is: 2.6.16.13-4-default #smp ..... x86_64 x86_64 x86_64 GNU/Linux


This is the recompiled kernel from the default kernel of SuSe 10.1 x86_64. First, i installed standard kernel which is installed automatically while installing suse. Since, it was giving the mentioned problem, i recompiled it, but the problem is still there. (the original installed kernel is still there, when I boot into this one, the problem is still there!)

I even tried Suse 10.1 (32 bit) and RedHat EL4 but they are also showing same problem.

The server has two intel xeon 3.0GHz processors on Intel 7520 dual processor motherboard and 4GB ECC-400Mhx RAM.

Should I try with Fedora Core 6 / Mandriva 2007 _free ???

I feel that it is a kernel issue that linux kernel is not supporting more than 4GB of total memory (RAM + SWAP)????

thanks

ajit
 
Old 11-30-2006, 10:52 PM   #5
king111
Member
 
Registered: Jul 2005
Distribution: Debian, Ubuntu
Posts: 85

Rep: Reputation: 15
(Nevermind, stupid answer.)
 
Old 12-02-2006, 12:39 AM   #6
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
try making a swap file and see if it gets used as a test
http://www.cyberciti.biz/faq/linux-a...ap-file-howto/
 
Old 12-02-2006, 12:54 AM   #7
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
The Linux kernel can handle up to 64 Gig of RAM. The SMP patch to the kernel allows the use of multiple CPUs and more RAM, up into the tera-byte range.

Since your code works on a machine with less RAM, but fails on a machine with dual CPUs and 4 Gig of RAM, I am forced to conclude that there is a problem with the *code* you are using.

And, you are using a 64-bit kernel. Is the code also compiled for 64-bit?
 
Old 12-03-2006, 09:39 PM   #8
ajitup
Member
 
Registered: Oct 2004
Location: Indore,India
Distribution: SuSe Linux 10.1 64 bit
Posts: 32

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bigrigdriver
The Linux kernel can handle up to 64 Gig of RAM. The SMP patch to the kernel allows the use of multiple CPUs and more RAM, up into the tera-byte range.

Since your code works on a machine with less RAM, but fails on a machine with dual CPUs and 4 Gig of RAM, I am forced to conclude that there is a problem with the *code* you are using.

And, you are using a 64-bit kernel. Is the code also compiled for 64-bit?

Hi!

No the code is compiled for 32 bit. But initially I tried Suse 10.1 32 bit and faced the same problem and then switched to Suse 10.1 64 bit.

ajit
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to reduce swap space and reclaim the space grantm Linux - Newbie 7 08-16-2012 07:05 AM
How to unmount actual swap and mount a new(bigger) swap space? isaac Linux - Newbie 1 06-06-2004 01:23 AM
linux booting problem with non-initialized swap space the_twister Linux - General 1 09-04-2003 12:11 PM
swap-space fstab problem MarkGraham Linux - Newbie 3 12-06-2002 11:23 AM
swap-space fstab problem MarkGraham Linux - Newbie 0 12-05-2002 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration