Messages in this thread | | | Date | Sat, 5 May 2001 13:11:51 -0400 (EDT) | From | Alexander Viro <> | Subject | Re: [PATCH] SMP race in ext2 - metadata corruption. |
| |
On Sat, 5 May 2001, Albert D. Cahalan wrote:
> case P_SWAP: > sprintf(tmp, "%4.4s ", > scale_k(((task->size - task->resident) << CL_pg_shift), 4, 1)); > break;
Albert, you can't be serious. The system had demand-loading for almost ten years. ->size - ->resident can be huge with no swap at all. As in, "box had never been subjected to swapon(8)".
That value is a mix of amount of stuff we hadn't paged in, amount of stuff we had paged in but then dropped (e.g. code that had never been touched for two weeks, since application only uses it on startup) and amount of stuff that had been swapped out _and_ wasn't swapped in (it may very well stay in swap).
BTW, "shared" is also bogus - page_count(page) can be raised by any number of things.
> > * makes stuff like top(1) _walk_ _whole_ _page_ _tables_ _of_ _all_ > > _processes_ each 5 seconds. No wonder it's slow like hell and eats > > tons of CPU time. > > On my system, "statm" takes 50% longer than "stat" or "status". > Maybe there is a significant difference with Oracle on a 32 GB box?
Depends on that applications mix.
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |