LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-12-2003, 09:55 PM   #1
alwin
LQ Newbie
 
Registered: Jan 2003
Posts: 9

Rep: Reputation: 0
Linux is eating to much memory!!!


Hello,

I'd like to ask our server (linux 7.3) and samba 2.27 why it is using to much memory (available = 2 gig, CPU = XEON 2.4mhz). When memory reached less than 20mb Free (from 2 gig to 20mb) it slow down its response. anyone have this problem? My client about 600 and processes average to 400. Thank you
 
Old 01-12-2003, 10:20 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
How many samba processes (nmbd/smbd) are running?
Can your disk i/o really keep up with 600 desktops?
 
Old 01-12-2003, 11:00 PM   #3
alwin
LQ Newbie
 
Registered: Jan 2003
Posts: 9

Original Poster
Rep: Reputation: 0
roughly around 600 smbd running... our disk can keep up with this, when server is re-started then for about 4 hrs it will run smoothly but will slow down after 5-6 hrs. because memory also decreases. thanks.
 
Old 01-12-2003, 11:14 PM   #4
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
by 'linux 7.3' do you mean RedHat or SuSE?
 
Old 01-12-2003, 11:18 PM   #5
alwin
LQ Newbie
 
Registered: Jan 2003
Posts: 9

Original Poster
Rep: Reputation: 0
RH 7.3 , thanks
 
Old 01-12-2003, 11:29 PM   #6
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Re-examining this thread - have you had a look at the Samba.org site or the man pages for smbd? It seems that you are facing one of two problems:

1) smbd is not dying after being used or staying alive too long
- or -
2) You actually have 600 clients making smb requests.

1 can be fixed with some research and testing.
2 is easy. more hardware. Or as my good bud Cal would say "Heaven forbid the day when I get a problem I can't solve by throwing money at it."
 
Old 01-12-2003, 11:38 PM   #7
alwin
LQ Newbie
 
Registered: Jan 2003
Posts: 9

Original Poster
Rep: Reputation: 0
1) I set my deadtime = 15 mins. (smb.conf)

2) Samba limits to 9999 request so 600 will be no problem

thanks,
 
Old 01-13-2003, 10:08 AM   #8
SlickWilly
Member
 
Registered: Dec 2002
Posts: 327

Rep: Reputation: 30
Okay...

You need to define the problem more. When you say 'it slow down its response' what response are you talking about?

1) response to file requests?
2) time taken to transfer files/
3) Printing time?
4) Keyboard response at a terminal?

You also need to understand Linux memory usage.

A clean system will have free / used / avail memory.
Linux will by default attempt to use free memory for buffers and disk cache. The idea is that if you have a ton of free memory sitting aroung it's better to use it for something useful (disk cache) than for it to be unused.

As programs request memory it gets released from disk cache/buffers and allocated to the program in question. However, your 'free' memory (as reported by free) will show a very little amount of actual *FREE* memory, and huge amounts allocated to buffers and cached. This is NORMAL.

In addition, when programs which request memory and then subsequently release it Linux doesn't mark the memory as *FREE*. It marks it as 'unused' but doesn't drop it back into the 'free' stack. When another program requests a block of memory it'll do a sweep through memory space and allocate the previously free'd memory to it. Essentially it means that the kernel doesn't have to make multiple page calls whenever someone uses a bit of memory, and instead uses a much more efficient memory sweeper to clean up as/when it's needed.

The net result is that you can't rely on what's reported in 'free'. You'll always have a minumum of 10% 'free' memory, and Linux reseves this as memory needed to start an application (instantly). Linux will *ALWAYS* use everything in your system, up to that 10% point. So a low free memory count is standard operation.

I doubt it's a memory problem. Your processes aren't memory intensive and your memory is *much* better used as disk cache (as it probably will be).

One way of figuring if your machine is memory bound is to look at the swap - as long as your machine isn't swapping it's got enough memory.

Try running some sar benchmarks and come back with some actual figures. 'it's slow' really doesn't give us enough to work with

Slick.
 
Old 01-13-2003, 04:48 PM   #9
alwin
LQ Newbie
 
Registered: Jan 2003
Posts: 9

Original Poster
Rep: Reputation: 0
... whew! that was a nice advised, thanks Slick.
 
Old 01-13-2003, 04:50 PM   #10
alwin
LQ Newbie
 
Registered: Jan 2003
Posts: 9

Original Poster
Rep: Reputation: 0
...by the way, number 1,2 & 4 is true... I don't use printing service. Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Something is eating my memory benne Linux - Software 15 11-25-2004 06:02 AM
Linux app eating up memory according to System Monitor brianvdc Linux - Newbie 1 10-22-2003 01:32 AM
HELP ... Linux is eating my memory!!! don_dimo Linux - General 4 10-21-2003 11:23 PM
Linux is eating to much memory!!! alwin Linux - Software 2 01-12-2003 10:33 PM
Linux is eating to much memory!!! alwin Linux - Networking 2 01-12-2003 10:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:32 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