Re: Where is the memory
[EMAIL PROTECTED] wrote: On Tue, 5 Jul 2005, Chuck Swiger wrote: [ ... ] It seems that this is the case. I wrote a small program to allocate a large block of memory (more them that shown as free) and the system doesn´t swap. Nor should it. Simply allocating memory doesn't actually use it, you'd have to write something to each page... That is the memory top shows as "Inactive"? Hmm. It's not clear what memory you're talking about here, although the FAQ provides an explanation that might clarify matters. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where is the memory
<[EMAIL PROTECTED]> writes: > On Tue, 5 Jul 2005, Chuck Swiger wrote: > > |[EMAIL PROTECTED] wrote: > |[ ... ] > |>My problem is that I think something in the system is allocating > |> memory and not releasing it. > | > |The kernel will attempt to use all but a little RAM reserved as free space to > |cache stuff from disk, unless and until that memory is needed for something > else. > > It seems that this is the case. I wrote a small program to > allocate a large block of memory (more them that shown as free) and the > system doesn´t swap. That isn't relevant. The memory won't even be mapped in until it is accessed. > That is the memory top shows as "Inactive"? I don't understand the question. I suspect you are looking for the following bit of the FreeBSD documentation: http://www.br.freebsd.org/doc/en_US.ISO8859-1/books/faq/misc.html#TOP-FREEMEM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where is the memory
On Tue, 5 Jul 2005, Chuck Swiger wrote: |[EMAIL PROTECTED] wrote: |[ ... ] |> My problem is that I think something in the system is allocating |> memory and not releasing it. | |The kernel will attempt to use all but a little RAM reserved as free space to |cache stuff from disk, unless and until that memory is needed for something else. It seems that this is the case. I wrote a small program to allocate a large block of memory (more them that shown as free) and the system doesn´t swap. That is the memory top shows as "Inactive"? Thank you, - Marcelo Souza ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where is the memory
On Tue, Jul 05, 2005 at 02:59:55PM -0300, [EMAIL PROTECTED] wrote: > Hi, > > On Mon, 4 Jul 2005, Hornet wrote: > > |In top, if you type in "u" it will prompt you for an account which you > |can monitor the processes and mem. Of course, this will not work for > |apps that are opened under different credentials. > > And does not change the amount of total free memory. > My problem is that I think something in the system is allocating > memory and not releasing it. > The same applications used to run on a Freebsd 4.7 BOX with 1GB > RAM, and only in some few cases had to swap out. > Now, I?m moving to another machine with 2GB RAM, and I?m seeing > where is the extra memory. I expected to have more free memory now. "Free memory is wasted memory". When something needs it, it will be reallocated from other areas. This is a FAQ. Kris pgpz9mPbOHgst.pgp Description: PGP signature
Re: Where is the memory
[EMAIL PROTECTED] wrote: [ ... ] My problem is that I think something in the system is allocating memory and not releasing it. The kernel will attempt to use all but a little RAM reserved as free space to cache stuff from disk, unless and until that memory is needed for something else. It is possible that something you run, or FreeBSD itself, has a memory leak, but if so, you'd see process sizes and swap usage grow until they hit a limit or exhaust the available resources. You're not using any swap, so it's not evident that there is a problem. The same applications used to run on a Freebsd 4.7 BOX with 1GB RAM, and only in some few cases had to swap out. Now, I´m moving to another machine with 2GB RAM, and I´m seeing where is the extra memory. I expected to have more free memory now. Free memory is wasted memory. -- -Chuck ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where is the memory
Hi, On Mon, 4 Jul 2005, Hornet wrote: |In top, if you type in "u" it will prompt you for an account which you |can monitor the processes and mem. Of course, this will not work for |apps that are opened under different credentials. And does not change the amount of total free memory. My problem is that I think something in the system is allocating memory and not releasing it. The same applications used to run on a Freebsd 4.7 BOX with 1GB RAM, and only in some few cases had to swap out. Now, I´m moving to another machine with 2GB RAM, and I´m seeing where is the extra memory. I expected to have more free memory now. - Marcelo Souza |On 7/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: |> Hi, |> |> How can I track where/who is using the system memory? |> |> I have a 2GB (RAM) system running Freebsd 5.4, basically as a mail |> gateway. |> |> After a few hours up, TOP shows me about 300MB of free memory. No |> swap yet. |> |> But the sum of RSS column of "ps axum", gives me about 600MB used. |> I know that kernel allocated memory doesn´t show in ps, but I |> think it´s not using 1.4GB. |> |> The head of top is like this: |> |> last pid: 7323; load averages: 1.49, 1.11, 1.30 up 4+05:57:30 19:01:05 |> 184 processes: 1 running, 183 sleeping |> CPU states: 16.7% user, 0.0% nice, 3.5% system, 0.6% interrupt, 79.3% idle |> Mem: 333M Active, 1218M Inact, 157M Wired, 42M Cache, 112M Buf, 256M Free |> Swap: 8192M Total, 8192M Free |> |> Also, why there is a difference between free memory reported by |> top and vmstat? |> |> Could it have some memory leak? Is there any report of it in |> freebsd 5.x? |> |> Thank you, |> |> - Marcelo |> |> |> ___ |> freebsd-questions@freebsd.org mailing list |> http://lists.freebsd.org/mailman/listinfo/freebsd-questions |> To unsubscribe, send any mail to "[EMAIL PROTECTED]" |> |___ |freebsd-questions@freebsd.org mailing list |http://lists.freebsd.org/mailman/listinfo/freebsd-questions |To unsubscribe, send any mail to "[EMAIL PROTECTED]" | - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Where is the memory
In top, if you type in "u" it will prompt you for an account which you can monitor the processes and mem. Of course, this will not work for apps that are opened under different credentials. On 7/4/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > How can I track where/who is using the system memory? > > I have a 2GB (RAM) system running Freebsd 5.4, basically as a mail > gateway. > > After a few hours up, TOP shows me about 300MB of free memory. No > swap yet. > > But the sum of RSS column of "ps axum", gives me about 600MB used. > I know that kernel allocated memory doesn´t show in ps, but I > think it´s not using 1.4GB. > > The head of top is like this: > > last pid: 7323; load averages: 1.49, 1.11, 1.30 up 4+05:57:30 19:01:05 > 184 processes: 1 running, 183 sleeping > CPU states: 16.7% user, 0.0% nice, 3.5% system, 0.6% interrupt, 79.3% idle > Mem: 333M Active, 1218M Inact, 157M Wired, 42M Cache, 112M Buf, 256M Free > Swap: 8192M Total, 8192M Free > > Also, why there is a difference between free memory reported by > top and vmstat? > > Could it have some memory leak? Is there any report of it in > freebsd 5.x? > > Thank you, > > - Marcelo > > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Where is the memory
Hi, How can I track where/who is using the system memory? I have a 2GB (RAM) system running Freebsd 5.4, basically as a mail gateway. After a few hours up, TOP shows me about 300MB of free memory. No swap yet. But the sum of RSS column of "ps axum", gives me about 600MB used. I know that kernel allocated memory doesn´t show in ps, but I think it´s not using 1.4GB. The head of top is like this: last pid: 7323; load averages: 1.49, 1.11, 1.30 up 4+05:57:30 19:01:05 184 processes: 1 running, 183 sleeping CPU states: 16.7% user, 0.0% nice, 3.5% system, 0.6% interrupt, 79.3% idle Mem: 333M Active, 1218M Inact, 157M Wired, 42M Cache, 112M Buf, 256M Free Swap: 8192M Total, 8192M Free Also, why there is a difference between free memory reported by top and vmstat? Could it have some memory leak? Is there any report of it in freebsd 5.x? Thank you, - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"