Re: posix ps (was Re: Adding `pgrep' and `pkill' to /usr/bin)

From: Garance A Drosihn (drosih_at_rpi.edu)
Date: 03/27/04

  • Next message: Pawel Jakub Dawidek: "fchroot(2) and others."
    Date: Sat, 27 Mar 2004 13:57:00 -0500
    To: "Cyrille Lefevre" <cyrille.lefevre@laposte.net>
    
    

    At 11:41 AM +0100 3/27/04, Cyrille Lefevre wrote:
    >"Garance A Drosihn" <drosih@rpi.edu> wrote:
    >as I read your proposed changes, we could merge them w/o
    >any problem. well, in fact, I already merge some of them
    >(the or part instead of and).
    >
    >original ps : 26668 (no posix compliant)
    >yours (gad) : 31072 (partly posix compliant)
    >mine (cyrille) : 35684 (fully posix compliant)

    Arg. It looks like I must have added another few instructions
    somewhere, and triggered the same size-increase that I talked
    about in the "Adventures with gcc: code vs object-code size"
    thread on the freebsd-hackers. In that case, adding 40 bytes
    of new instructions to one routine in ps.o caused /bin/ps to
    jump by 3940 bytes.

    As long as I had avoided whatever that threshold was, I was
    able to keep the size down around 27000 bytes. And that was
    for a version which *included* the -R, -s, and new -g options.
    Man that's annoying, I had been doing so good with it...

    -- 
    Garance Alistair Drosehn            =   gad@gilead.netel.rpi.edu
    Senior Systems Programmer           or  gad@freebsd.org
    Rensselaer Polytechnic Institute    or  drosih@rpi.edu
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Pawel Jakub Dawidek: "fchroot(2) and others."

    Relevant Pages