freebsd question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sandman!
    Icq: 14420613
    • Mar 2001
    • 15427

    #1

    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
    Need WebHosting ? Email me for some great deals [email protected]
  • Babaganoosh
    ♥♥♥ Likes Hugs ♥♥♥
    • Nov 2001
    • 15841

    #2
    ps -aux

    Find the number for the process that is still running.

    kill 723648 (or whatever the number is)
    I like pie.

    Comment

    • sandman!
      Icq: 14420613
      • Mar 2001
      • 15427

      #3
      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.
      Need WebHosting ? Email me for some great deals [email protected]

      Comment

      • some_idiot
        Confirmed User
        • May 2002
        • 1511

        #4
        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?

        This AVS pays my mortgage!

        Comment

        • sandman!
          Icq: 14420613
          • Mar 2001
          • 15427

          #5
          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.
          Need WebHosting ? Email me for some great deals [email protected]

          Comment

          • sandman!
            Icq: 14420613
            • Mar 2001
            • 15427

            #6
            bump
            Need WebHosting ? Email me for some great deals [email protected]

            Comment

            • some_idiot
              Confirmed User
              • May 2002
              • 1511

              #7
              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

              This AVS pays my mortgage!

              Comment

              • liquidmoe
                Confirmed User
                • Mar 2002
                • 4994

                #8
                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

                Take Luck!

                Comment

                Working...