GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   freebsd question (https://gfy.com/showthread.php?t=154796)

sandman! 07-20-2003 09:50 AM

freebsd question
 
How do i free inact memory up?
I have something on my server thats not releasing memory after its done running and i need to do it manually :(

Babaganoosh 07-20-2003 09:54 AM

ps -aux

Find the number for the process that is still running.

kill 723648 (or whatever the number is)

sandman! 07-20-2003 10:06 AM

Quote:

Originally posted by Armed & Hammered
ps -aux

Find the number for the process that is still running.

kill 723648 (or whatever the number is)

I know how to kill process i need to free up inactive ram im not sure what process it is there is nothing running righ now i think its a script i run that leaves shit inactive after its done.

some_idiot 07-20-2003 10:22 AM

The VM in FreeBSD will bring inactive pages into the pool as
needed.

If you've a memory leak from some piece of shit program,
...get out the debugger and fix it.

What is the exact messages that are generated on the cons?
You're not just running top or something and figuring that
the VM system works like winXX and assuming a low number
is all that is really there right?

sandman! 07-20-2003 10:36 AM

Quote:

Originally posted by some_idiot
The VM in FreeBSD will bring inactive pages into the pool as
needed.

If you've a memory leak from some piece of shit program,
...get out the debugger and fix it.

What is the exact messages that are generated on the cons?
You're not just running top or something and figuring that
the VM system works like winXX and assuming a low number
is all that is really there right?


Ok here is the story im running top to check stats, thurday the box got upgraded to 1664 megs of ram from 640 box got rebooted with about 900 megs of free ram slowly till today that # has gone down to 68 megs now my traffic is only up 20% since the ram upgrade and im running the same scripts as before my tech is on vacation and wont be back for a few more days so i figured either free up inactive or reboot to fix the problem till he gets back and can look at it.

Tell me if my thinking is wrong.

sandman! 07-20-2003 11:00 AM

bump

some_idiot 07-20-2003 11:05 AM

Are you running a stock kernel?

Post the line like

Mem: 12M Active, 14M Inact, 25M Wired, 5444K Cache, 14M Buf, 3168K Free

from your top display.

It's probably as simple as just tuning the user space VM settings.
and recompiling the kernel. You did say you're not running
anything new.

Better would be to do a vmstat -m and ICQ me over the output
to look at. 176592333

liquidmoe 07-20-2003 11:40 AM

1664 megs of ram, what dimms did you put in to get that freaky number? :)

Anyway stop fretting about inactive memory, if you arent using any swap it doesnt matter, also look at the number of apaches or inactive processes you are running, more likely than not these are responsible for your inactive memory. But in any case inactive memory isnt bad for the system, it means nothing unless you are heavy in swap usage.

49 processes: 2 running, 47 sleeping
CPU states: 10.1% user, 0.0% nice, 15.5% system, 0.0% interrupt, 74.3% idle
Mem: 167M Active, 559M Inact, 123M Wired, 580K Cache, 199M Buf, 1159M Free
Swap: 512M Total, 512M Free


All times are GMT -7. The time now is 05:51 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123