Re: binaries not portable from Debian to RedHat
From: Kasper Dupont (kasperd_at_daimi.au.dk)
Date: Sat, 16 Jul 2005 16:04:58 +0200
David Schwartz wrote:
> That, or you can't have a 'ps'.
su -c 'rm /bin/ps'
Problem solved. Somehow I doubt any standard says
you are not allowed to have a ps command, if there
isn't a way to tell a difference between threads
and processes. In fact in Linux they are the same.
> >> It's based on the definition of "process". Modern "ps"
> >> implementations
> >> are smart enough to know that they're supposed to show *processes*, not
> >> KSEs. Older ones aren't so smart.
> > Try an old ps on a new kernel, and try a new ps on
> > an old kernel.
> Eww. I hope they didn't 'fix' the kernel, because there really wasn't
> anything wrong with it.
No, there was nothing wrong with it. It worked
perfectly fine, it just wasn't complying with any
standards. So a few changes were made to make it
compliant with Posix.
> The ideal solution would be for the kernel to
> identify which KSEs share vm and for 'ps' to use this information to prepare
> the correct display.
Could be handy, but AFAIK the kernel does not any
way to tell if two tasks share vm.
> Configuring the kernel to suppress what threads is,
> IMO, an inferior solution.
Seems like you actually don't know how it works.
-- Kasper Dupont -- der bruger for meget tid på usenet. Note to self: Don't try to allocate 256000 pages with GFP_KERNEL on x86.