Having to reboot every few hours is totally inconsistent with basing the
OS on Unix. We'll see if this gets better in future releases.
I have so far not observed this behavior on 10.2.6, which I routinely
run for days or weeks at a time.
I'm trying to understand some virtual memory strangeness I'm seeing.}
After a reboot, I have lots of free memory available (as shown by
'top'). After a while, the amount of inactive memory increases until }>there's hardly any free memory left, at which point my system starts }>getting lots of pageouts.
What is confusing to me is that this condition persists even after I
kill all my applications. Even with no applications running, top
reports a large figure for inactive memory.
It seems to me that when a an application process is killed, its
physical pages should be returned to the free pool, and not left around
as inactive.
Or perhaps that's not what's happening, perhaps some hidden process is }>eating all my virtual memory.
The practical result is that no matter how much physical memory I have
in my system, after a certain period of time the system gets into a
state where it's paging out every time I try to do anything. I have to }>reboot every day even with a gig of memory installed.
Does anyone have an explanation for why this happens?
I'm trying to understand some virtual memory strangeness I'm seeing.
After a reboot, I have lots of free memory available (as shown by
'top'). After a while, the amount of inactive memory increases until there's hardly any free memory left, at which point my system starts
getting lots of pageouts.
What is confusing to me is that this condition persists even after I
kill all my applications. Even with no applications running, top
reports a large figure for inactive memory.
It seems to me that when a an application process is killed, its
physical pages should be returned to the free pool, and not left around
as inactive.
Or perhaps that's not what's happening, perhaps some hidden process is eating all my virtual memory.
The practical result is that no matter how much physical memory I have
in my system, after a certain period of time the system gets into a
state where it's paging out every time I try to do anything. I have to reboot every day even with a gig of memory installed.
Does anyone have an explanation for why this happens?
Okay, and with the single digit bus speeds of yesteryear, that sorta
makes sense. The question remains, when does the system decide you
aren't going to relaunch the program, and let something else use the
memory? I only use Photoshop every few days, and it hogs a metric
buttload of space.
In article <fishfry-617321.09383523072003@netnews.attbi.com>,
fishfry <fishfry@your-mailbox.com> wrote:
In article <20030723092014459-0700@news.la.sbcglobal.net>,
matt neuburg <matt@tidbits.com> wrote:
I don't have an explanation, but you're right, that's the way it
works. The real problem is that as extra swapfiles are generated
they too are not given back when you quit applications, so your
hard disk starts filling up.
That's not true. I've wondered about this, and I have observed the
number of swap files both increasing and decreasing as memory
requirements vary. Decreasing when, as would be expected, I have quit applications.
In article <bfmdl7$4ug$1@news.fsu.edu>,
bellenot@math.fsu.edu (Steve Bellenot) wrote:
}This is normal for a unix system. Generally unix keeps a small
}free pool of memory and allocates everything else. Suppose you
}use application X and quit it. Rather than work hard to free all the }memory, unix assumes that maybe you will restart application X
}and it will be able to reuse the old memory rather than loading
}it once again from disk. Actually it makes sense, what application
}are you more likely to restart than the one you just quit? (The
}oh damn I forgot factor.)
Okay, and with the single digit bus speeds of yesteryear, that sorta
makes sense. The question remains, when does the system decide you
aren't going to relaunch the program, and let something else use the
memory?
In article <fishfry-3BB973.08151023072003@netnews.attbi.com>, fishfry <fishfry@your-mailbox.com> wrote:
I'm trying to understand some virtual memory strangeness I'm seeing.
After a reboot, I have lots of free memory available (as shown by
'top'). After a while, the amount of inactive memory increases until there's hardly any free memory left, at which point my system starts getting lots of pageouts.
What method are you using to determine the number of page-outs? Does top
show them?
I see all the behaviors you report *except* pageouts.
If you're actually paging-out, then there probably is an errant process.
If you memory is full, things are normal. Your "top" output will tell
you/us a lot.
If you're actually paging-out, then there probably is an errant process.
If you memory is full, things are normal. Your "top" output will tell you/us a lot.
Once I run out of freespace, everything I do results in hundreds of
pageouts as shown by top. Reading mail and loading web pages becomes an exercize in watching the spinning beachball. Quitting all my active applications doesn't help. The symptoms are certainly consistent with a serious memory leak.
I don't have an explanation, but you're right, that's the way it works.
The real problem is that as extra swapfiles are generated they too are
not given back when you quit applications, so your hard disk starts
filling up. I wrote my free app MemoryStick exactly so that I could see memory usage. I restart when I start getting too many pageouts /
swapfiles; I do this several times a day (but I have less RAM than you).
m.
In <tph-B18FDC.11114723072003@localhost> Tom Harrington wrote:
In article <fishfry-617321.09383523072003@netnews.attbi.com>,
fishfry <fishfry@your-mailbox.com> wrote:
In article <20030723092014459-0700@news.la.sbcglobal.net>,
matt neuburg <matt@tidbits.com> wrote:
I don't have an explanation, but you're right, that's the way it
works. The real problem is that as extra swapfiles are generated
they too are not given back when you quit applications, so your
hard disk starts filling up.
That's not true. I've wondered about this, and I have observed the
number of swap files both increasing and decreasing as memory
requirements vary. Decreasing when, as would be expected, I have quit applications.
We've had this discussion before, so it's pointless to rehash it. I'm
sure what you're saying is true for you, but what I'm saying is true for
me. I've never seen the number of swapfiles revert of its own accord to, say, the 1 that is present when I restart; and over time my RAM is increasingly eaten by Active (not inactive) memory that is not given
back even after I've quit everything I started. This has been true for
the two years I've been monitoring this stuff. (I've had a number of MemoryStick users write to say that the problem seems worse in recent versions of the system; I suspect that has something to do with window caching.) m.
In article <pmcgrane-42F629.02485125072003@news.comcast.giganews.com>,
Paul McGrane <pmcgrane@mac.com.NOSPAM.invalid> wrote:
In article <20030723092014459-0700@news.la.sbcglobal.net>,
matt neuburg <matt@tidbits.com> wrote:
I don't have an explanation, but you're right, that's the way it works. >> > The real problem is that as extra swapfiles are generated they too are
not given back when you quit applications, so your hard disk starts
filling up. I wrote my free app MemoryStick exactly so that I could see >> > memory usage. I restart when I start getting too many pageouts /
swapfiles; I do this several times a day (but I have less RAM than you). >> > m.
How many VM swapfiles is enough to make you restart? Why is it
worthwhile to delete them at restart and have them missing for a few
hours, only to be rebuilt when necessary? Is your hard drive simply too
small for your usage pattern? (how big is it?)
I admit I'm skeptical of the need for all this restarting, but I am
honestly interested in what you feel the boundary case is. I don't know
whether my own use crosses it.
I would be interested in what improved performance you get after the >restarts that makes this worthwhile. If you really have to do this, then >something is terribly wrong, for I let my system(s) run for months at a
time and don't notice any performance degradation, excessive disk
activity, slower launches, etc. Is this memory leak associated with some >particular app or group of apps?
I have Memory Monitor running almost continuously and I also observe
that memory usage grows over time, but for me (I have 1 gig of RAM), the >usage stabilizes with ~250 megs free and hundreds of megs inactive. This >steady state maintains itself under pretty heavy loads (I typically
launch 10-20 major apps and just leave them open.) for weeks to months.
----== Posted via Newsfeed.Com - Unlimited-Uncensored-Secure Usenet News==---- >http://www.newsfeed.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= 19 East/West-Coast Specialized Servers - Total Privacy via Encryption =---
I've never seen the number of swapfiles revert of its own accord to,
say, the 1 that is present when I restart; and over time my RAM is >increasingly eaten by Active (not inactive) memory that is not given
back even after I've quit everything I started.
Sysop: | Gate Keeper |
---|---|
Location: | Shelby, NC |
Users: | 790 |
Nodes: | 20 (0 / 20) |
Uptime: | 41:30:24 |
Calls: | 12,115 |
Files: | 5,294 |
Messages: | 564,934 |