Messages in this thread |  | | Date | Wed, 23 Aug 2000 17:13:52 +0100 (BST) | From | Tigran Aivazian <> | Subject | Re: Thread Questions |
| |
On Wed, 23 Aug 2000, Patrick Narkinsky wrote: > Currently, working through /proc, we are > seeing each thread as a separate process and are thus claiming that > applications are using far more memory than they actually are.
I think Andi Kleen suggested something similar to this:
You could enhance a file /proc/<pid>/stat (or some other, or invent a new one) to export a VM cookie (sorry, working with Mark made the word "cookie" my favourite one and I can't think of a better :) which is nothing other than a current->mm value, i.e. a kernel virtual address. Then you can easily detect CLONE_VM threads.
Regards, Tigran
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
|  |