From sacadmin Thu May 13 06:51:38 2010
Received: from stard.SFBay.Sun.COM (stard.SFBay.Sun.COM [129.146.228.20])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DDpcYa023285;
	Thu, 13 May 2010 06:51:38 -0700 (PDT)
Received: from stard.SFBay.Sun.COM (localhost [127.0.0.1])
	by stard.SFBay.Sun.COM (8.14.4+Sun/8.14.4) with ESMTP id o4DDru4o017083;
	Thu, 13 May 2010 06:53:56 -0700 (PDT)
Received: (from richb@localhost)
	by stard.SFBay.Sun.COM (8.14.4+Sun/8.14.4/Submit) id o4DDruRJ017081;
	Thu, 13 May 2010 06:53:56 -0700 (PDT)
Date: Thu, 13 May 2010 06:53:56 -0700 (PDT)
From: Rich Burridge <richb@stard.SFBay.Sun.COM>
Message-Id: <201005131353.o4DDruRJ017081@stard.SFBay.Sun.COM>
To: PSARC-record@sac.sfbay.sun.com
Subject: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
Status: RO
Content-Length: 594


Template Version: @(#)sac_nextcase 1.70 03/30/10 SMI
This information is Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
1. Introduction
    1.1. Project/Component Working Name:
	 GNU coreutils 8.5
    1.2. Name of Document Author/Supplier:
	 Author:  John Sonnenschein
    1.3  Date of This Document:
	13 May, 2010
4. Technical Description
    See the case directory for more detail

6. Resources and Schedule
    6.4. Steering Committee requested information
   	6.4.1. Consolidation C-team Name:
		SFW
    6.5. ARC review type: FastTrack
    6.6. ARC Exposure: open


From rich.burridge@oracle.com Thu May 13 07:04:10 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DE4A1w023751
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 07:04:10 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4DE46fB042072
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 08:04:09 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D00E2932W9B00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 07:04:08 -0700 (PDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00FXS32VSEA0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 07:04:08 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DE479k009855	for
 <PSARC-ext@Sun.COM>; Thu, 13 May 2010 14:04:07 +0000 (GMT)
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DCjE11010855	for <PSARC-ext@sun.com>; Thu,
 13 May 2010 14:04:06 +0000 (GMT)
Received: from abhmt018.oracle.com by acsmt354.oracle.com	with ESMTP id
 238303501273759416; Thu, 13 May 2010 07:03:36 -0700
Received: from [129.146.228.20] (/129.146.228.20)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 07:03:34 -0700
Date: Thu, 13 May 2010 07:05:50 -0700
From: Rich Burridge <rich.burridge@oracle.com>
Subject: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
To: PSARC-ext@sun.com
Cc: John Sonnenschein <john.sonnenschein@oracle.com>
Message-id: <4BEC073E.5030506@oracle.com>
MIME-version: 1.0
Content-type: multipart/mixed; boundary="Boundary_(ID_sEmlpaBgd/a+93uxjxnNmQ)"
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090206.4BEC06D7.0068:SCFMA4539814,ss=1,fgs=0
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100412
 Thunderbird/3.0.3
Status: RO
Content-Length: 3963

This is a multi-part message in MIME format.

--Boundary_(ID_sEmlpaBgd/a+93uxjxnNmQ)
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT


I'm sponsoring this case for John Sonnenschein. A patch release
binding is requested. The proposal.txt is attached. See the case
directory for the rest of the materials.

--Boundary_(ID_sEmlpaBgd/a+93uxjxnNmQ)
Content-type: text/plain; name=proposal.txt
Content-transfer-encoding: 7BIT
Content-disposition: attachment; filename=proposal.txt

1. Introduction
    1.1. Project/Component Working Name:
         GNU coreutils 8.5

    1.2. Name of Document Author/Supplier:
         Author:  John.Sonnenschein@Sun.COM

    1.3  Date of This Document:
         13th May, 2010


4. Technical Description

   Update GNU coreutils to 8.5


1.  Summary

        This fasttrack is a direct follow-on to:

            PSARC/2007/048 Include GNU coreutils 6.7
            and
            PSARC/2009/355  GNU coreutils 7.4

        It increments the version of GNU coreutils in OpenSolaris to 8.5.

        Patch release binding is requested.


2.  Discussion

        GNU coreutils--the combination of GNU fileutils, GNU shellutils, and
        GUN textutils--provide implementations of many common Unix utilities
        as well as various enhancements and additional related utilities.

        The version proposed here is the latest stable version available
        and will replace version 7.4, which is currently in OpenSolaris.


3.  Interfaces

        PSARC/2009/355 section 3 describe the interface details
        for the GNU coreutils 7.4 commands.  The changes between 7.4 and 8.5
        are described in the Coreutils.8.5.txt file in the case materials
        directory. Each command retains the same stability level.

        Between 7.4 and 8.5, the following new command was introduced:

        /usr/bin/
                nproc
                       Location                     Uncommitted
                       Invocation                   Uncommitted
                       Human-readable output        Not an Interface

       See the various man pages in the case materials directory for 
       more details.


4. Reference Documents (located in case materials directory)

       Coreutils.8.5.changes.txt - (from project NEWS file).

       <command>.1.txt manual pages for the following commands:

       base64      basename    cat         chcon       chgrp
       chmod       chown       chroot      cksum       comm
       cp          csplit      cut         date        dd
       df          dir         dircolors   dirname     du
       echo        env         expand      expr        factor
       false       fmt         fold        groups      head
       hostid      id          install     join        kill
       link        ln          logname     ls          md5sum
       mkdir       mkfifo      mknod       mktemp      mv
       nice        nl          nproc       nohup       od
       paste       pathchk     pinky       pr          printenv
       printf      ptx         pwd         readlink    rm
       rmdir       runcon      seq         sha1sum     sha224sum
       sha256sum   sha384sum   sha512sum   shred       shuf
       sleep       sort        split       stat        stty
       sum         sync        tac         tail        tee
       test        timeout     touch       tr          true
       truncate    tsort       tty         uname       unexpand
       uniq        unlink      uptime      users       vdir
       wc          who         whoami      yes


6. Resources and Schedule
    6.4. Steering Committee requested information
           6.4.1. Consolidation C-team Name:
                SFW

    6.5. ARC review type: FastTrack

    6.6. ARC Exposure: open

7. Prototype Availability:

   7.1. Prototype Availability:

        June 2009.

   7.2. Prototype Cost:

        2 weeks.

--Boundary_(ID_sEmlpaBgd/a+93uxjxnNmQ)--

From alan.coopersmith@oracle.com Thu May 13 07:19:09 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DEJ9Lj024109
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 07:19:09 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4DEJ8r6050621
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 08:19:09 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D00I153RW1Q00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 07:19:08 -0700 (PDT)
Received: from dm-sfbay-01.sfbay.sun.com ([129.145.155.118])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00FW93RVSFB0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 07:19:07 -0700 (PDT)
Received: from [129.145.155.53] (sunray-osol-2.SFBay.Sun.COM [129.145.155.53])
	by dm-sfbay-01.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4)
 with ESMTP id o4DEJ7gH005586; Thu, 13 May 2010 07:19:07 -0700 (PDT)
Date: Thu, 13 May 2010 07:19:07 -0700
From: Alan Coopersmith <alan.coopersmith@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC073E.5030506@oracle.com>
To: Rich Burridge <rich.burridge@oracle.com>
Cc: PSARC-ext@sun.com, John Sonnenschein <john.sonnenschein@oracle.com>
Message-id: <4BEC0A5B.8050209@oracle.com>
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Enigmail-Version: 0.95.1
References: <4BEC073E.5030506@oracle.com>
User-Agent: Thunderbird 2.0.0.23 (X11/20090926)
Status: RO
Content-Length: 686

>         Between 7.4 and 8.5, the following new command was introduced:
> 
>         /usr/bin/
>                 nproc
>                        Location                     Uncommitted
>                        Invocation                   Uncommitted
>                        Human-readable output        Not an Interface


The Coreutils.8.5.txt also mentions stdbuf as a new command added in 7.5,
and the man page for it is included.   Will this case also be adding it
to /usr/bin since there is no existing conflicting utility there?  Same
stability levels as nproc?

-- 
	-Alan Coopersmith-        alan.coopersmith@oracle.com
	 Oracle Solaris Platform Engineering: X Window System


From Darren.Moffat@oracle.com Thu May 13 08:15:53 2010
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DFFq1O025381
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 08:15:52 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail2sca.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DFFqIv020575
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 08:15:52 -0700 (PDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0081F6EG7G00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 08:15:52 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001076EEM120@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 08:15:50 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DFFoFe016241	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 15:15:50 +0000 (GMT)
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DCEl2O015552	for <PSARC-ext@sun.com>; Thu,
 13 May 2010 15:15:49 +0000 (GMT)
Received: from abhmt005.oracle.com by acsmt355.oracle.com	with ESMTP id
 262136481273763742; Thu, 13 May 2010 08:15:42 -0700
Received: from [10.7.251.221] (/10.7.251.221)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 08:15:41 -0700
Date: Thu, 13 May 2010 16:15:38 +0100
From: Darren J Moffat <Darren.Moffat@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC0A5B.8050209@oracle.com>
To: John Sonnenschein <john.sonnenschein@oracle.com>
Cc: Rich Burridge <rich.burridge@oracle.com>, PSARC-ext@sun.com
Message-id: <4BEC179A.5030009@Oracle.COM>
Organization: Oracle Solaris Security
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090207.4BEC17A5.016F:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100315
 Lightning/1.0b1 OracleBeehiveExtension/1.0.0.0pre3 Thunderbird/3.0.3
Status: RO
Content-Length: 1016

On 13/05/2010 15:19, Alan Coopersmith wrote:
>>          Between 7.4 and 8.5, the following new command was introduced:
>>
>>          /usr/bin/
>>                  nproc
>>                         Location                     Uncommitted
>>                         Invocation                   Uncommitted
>>                         Human-readable output        Not an Interface

What API is nproc calling on Solaris to get the "number of processing 
units" ?

What happens when it is run in a Zone that is part of a processor pool ? 
  I think the "-a" output won't actually be "all installed".

My concern here is that this command could depending how it is 
implemented be very misleading on Solaris because of the processor 
virualisation and resource management functionality we have.

At the moment I'm not suggested it be dropped or its documentation be 
changed in anyway, just trying to understand it it has a chance of 
giving the user a reasonable (ideally actually correct) answer.

-- 
Darren J Moffat

From john.sonnenschein@oracle.com Thu May 13 08:19:58 2010
Received: from sunmail6brm.central.sun.com (sunmail6brm.Central.Sun.COM [129.147.4.169])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DFJw6i025467
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 08:19:58 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by sunmail6brm.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DFJvPI021724
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 10:19:57 -0500 (CDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D000036L9NP00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 08:19:57 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00F1M6L9CBE0@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 08:19:57 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DFJuJr018757	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 15:19:56 +0000 (GMT)
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DCEl42015552	for <PSARC-ext@sun.com>; Thu,
 13 May 2010 15:19:56 +0000 (GMT)
Received: from abhmt016.oracle.com by acsmt355.oracle.com	with ESMTP id
 262153511273763989; Thu, 13 May 2010 08:19:49 -0700
Received: from [192.168.1.103] (/76.10.188.43)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 08:19:49 -0700
Date: Thu, 13 May 2010 08:19:47 -0700
From: John Sonnenschein <john.sonnenschein@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC0A5B.8050209@oracle.com>
To: Alan Coopersmith <alan.coopersmith@oracle.com>
Cc: Rich Burridge <rich.burridge@oracle.com>, PSARC-ext@sun.com
Message-id: <C7315563-5B7E-4A81-B2A5-953E99800643@oracle.com>
MIME-version: 1.0
X-Mailer: Apple Mail (2.1078)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090206.4BEC189C.012E:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
Status: RO
Content-Length: 762


On 2010-05-13, at 7:19 AM, Alan Coopersmith wrote:

>>        Between 7.4 and 8.5, the following new command was introduced:
>> 
>>        /usr/bin/
>>                nproc
>>                       Location                     Uncommitted
>>                       Invocation                   Uncommitted
>>                       Human-readable output        Not an Interface
> 
> 
> The Coreutils.8.5.txt also mentions stdbuf as a new command added in 7.5,
> and the man page for it is included.   Will this case also be adding it
> to /usr/bin since there is no existing conflicting utility there?  Same
> stability levels as nproc?

Yes this was an omission on my part. stdbuf will be included, and with the same stability levels as nproc. Apologies

-JohnS

From john.sonnenschein@oracle.com Thu May 13 09:00:53 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DG0rR2026388
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:00:53 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4DG0pqt045286
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 10:00:52 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D002038HGC000@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 09:00:52 -0700 (PDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001QW8HFVB00@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 09:00:52 -0700 (PDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DG0pAU028574	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:00:51 +0000 (GMT)
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DFqBN4016403	for <PSARC-ext@sun.com>; Thu,
 13 May 2010 16:00:50 +0000 (GMT)
Received: from abhmt010.oracle.com by acsmt353.oracle.com	with ESMTP id
 262317311273766448; Thu, 13 May 2010 09:00:48 -0700
Received: from [192.168.1.103] (/76.10.188.43)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 09:00:47 -0700
Date: Thu, 13 May 2010 09:00:35 -0700
From: John Sonnenschein <john.sonnenschein@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC179A.5030009@Oracle.COM>
To: Darren J Moffat <Darren.Moffat@oracle.com>
Cc: PSARC-ext@sun.com, Rich Burridge <rich.burridge@oracle.com>
Message-id: <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
MIME-version: 1.0
X-Mailer: Apple Mail (2.1078)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090209.4BEC2232.0131:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
Status: RO
Content-Length: 1527

nproc uses sysconf(3M) for determining the number of processors on Solaris which means that zones with CPU pools will see the number in the pool, rather than the number in the machine.

It may be worthwhile updating the documentation to reflect this, but then again sysconf(3C) itself is not documented in this way.

-JohnS

On 2010-05-13, at 8:15 AM, Darren J Moffat wrote:

> On 13/05/2010 15:19, Alan Coopersmith wrote:
>>>         Between 7.4 and 8.5, the following new command was introduced:
>>> 
>>>         /usr/bin/
>>>                 nproc
>>>                        Location                     Uncommitted
>>>                        Invocation                   Uncommitted
>>>                        Human-readable output        Not an Interface
> 
> What API is nproc calling on Solaris to get the "number of processing units" ?
> 
> What happens when it is run in a Zone that is part of a processor pool ?  I think the "-a" output won't actually be "all installed".
> 
> My concern here is that this command could depending how it is implemented be very misleading on Solaris because of the processor virualisation and resource management functionality we have.
> 
> At the moment I'm not suggested it be dropped or its documentation be changed in anyway, just trying to understand it it has a chance of giving the user a reasonable (ideally actually correct) answer.
> 
> -- 
> Darren J Moffat
> _______________________________________________
> opensolaris-arc mailing list
> opensolaris-arc@opensolaris.org


From olga.kryzhanovska@gmail.com Thu May 13 09:18:58 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGIw07026619
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:18:58 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4DGIvNH057032
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 10:18:58 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0030H9BL2H00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 09:18:57 -0700 (PDT)
Received: from sca-ea-mail-1.sun.com ([192.18.43.24])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001UW9BLV610@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 09:18:57 -0700 (PDT)
Received: from relay42i.sun.com ([192.5.209.72])
	by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o4DFwdI2012887	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:18:57 +0000 (GMT)
Received: from mmp43es.mmp.us.syntegra.com ([160.41.221.12] [160.41.221.12])
 by relay42i.sun.com with ESMTP id BT-MMP-1301433 for PSARC-ext@sun.com; Thu,
 13 May 2010 16:18:56 +0000 (Z)
Received: from relay41i.sun.com (relay41i.sun.com [192.5.209.70])
 by mmp43es.mmp.us.syntegra.com with ESMTP id BT-MMP-149666149 for
 PSARC-ext@sun.com; Thu, 13 May 2010 16:18:56 +0000 (Z)
Received: from mail-qy0-f195.google.com ([209.85.221.195] [209.85.221.195])
 by relay4i.sun.com with ESMTP id BT-MMP-8312760 for PSARC-ext@sun.com; Thu,
 13 May 2010 16:18:56 +0000 (Z)
Received: by qyk33 with SMTP id 33so1980021qyk.24 for <PSARC-ext@sun.com>; Thu,
 13 May 2010 09:18:06 -0700 (PDT)
Received: by 10.224.44.77 with SMTP id z13mr6328219qae.213.1273767486089; Thu,
 13 May 2010 09:18:06 -0700 (PDT)
Received: by 10.224.73.211 with HTTP; Thu, 13 May 2010 09:18:05 -0700 (PDT)
Date: Thu, 13 May 2010 18:18:05 +0200
From: =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= <olga.kryzhanovska@gmail.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
To: John Sonnenschein <john.sonnenschein@oracle.com>
Cc: Darren J Moffat <Darren.Moffat@oracle.com>, PSARC-ext@sun.com,
        Rich Burridge <rich.burridge@oracle.com>
Message-id: <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1
Content-transfer-encoding: 7BIT
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to
 :references:date:message-id:subject:from:to:cc:content-type;
 bh=5qOXJEjynPYwwU8j/bbDj6HdC6OKPD/E52weVzQ+PkQ=;
 b=G7nn6N4159Re1byqRzsjS6k2z9jBcSsC3cLfg0A0aB0O2SYlksyDpp5FHqiDSgWkRE
 cs3yKjCPiF0KEkemkamITa5/qaP+jvT3vwqi0d5bobXy2jWZUp+OdKxFzGkOZzQPQixA
 04etweLA20WiyfOdo+vWx/NTm9q3DCJ8lSaK0=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 b=tjhUP7WD7/KxYCPQhm49FP+g/eHajmDPUZKmPDN5Rk3jhrMYYOP/xfajGoGM8AbOLE
 wQTsteLKLFu3LFnzC2HsDkNia7sQtmlb0TVPGgY/aGbZ4KRm5FwqLgx6xag9dmRaV3eW
 DQVYVzvcfIjHVvkueniVXG2lm0zJ0/KljPxWw=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=-2.6/5.0, scanned in 0.104sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM> <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
Status: RO
Content-Length: 2503

AFAIK scripts should use getconf tags NPROCESSORS_CONF,
NPROCESSORS_MAX or NPROCESSORS_ONLN (or just NPROCESSORS_ONLN because
it describes the number of currently online cores) to determinate the
number of processors it can use. This works on almost all platforms
(Linux, FreeBSD, OpenBSD) and within ksh93's getconf.

Has nproc any special feature not exposed by the getconf NPROCESSORS_*
interface?

Olga

On Thu, May 13, 2010 at 6:00 PM, John Sonnenschein
<john.sonnenschein@oracle.com> wrote:
> nproc uses sysconf(3M) for determining the number of processors on Solaris which means that zones with CPU pools will see the number in the pool, rather than the number in the machine.
>
> It may be worthwhile updating the documentation to reflect this, but then again sysconf(3C) itself is not documented in this way.
>
> -JohnS
>
> On 2010-05-13, at 8:15 AM, Darren J Moffat wrote:
>
>> On 13/05/2010 15:19, Alan Coopersmith wrote:
>>>>         Between 7.4 and 8.5, the following new command was introduced:
>>>>
>>>>         /usr/bin/
>>>>                 nproc
>>>>                        Location                     Uncommitted
>>>>                        Invocation                   Uncommitted
>>>>                        Human-readable output        Not an Interface
>>
>> What API is nproc calling on Solaris to get the "number of processing units" ?
>>
>> What happens when it is run in a Zone that is part of a processor pool ?  I think the "-a" output won't actually be "all installed".
>>
>> My concern here is that this command could depending how it is implemented be very misleading on Solaris because of the processor virualisation and resource management functionality we have.
>>
>> At the moment I'm not suggested it be dropped or its documentation be changed in anyway, just trying to understand it it has a chance of giving the user a reasonable (ideally actually correct) answer.
>>
>> --
>> Darren J Moffat
>> _______________________________________________
>> opensolaris-arc mailing list
>> opensolaris-arc@opensolaris.org
>
> _______________________________________________
> opensolaris-arc mailing list
> opensolaris-arc@opensolaris.org
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`

From Darren.Moffat@oracle.com Thu May 13 09:19:05 2010
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGJ4FP026631
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:19:04 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DGIwNX007295
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 09:19:04 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0021B9BRJW00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 10:19:03 -0600 (MDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00CFW9BR8DC0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 10:19:03 -0600 (MDT)
Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DGJ2Xx003875	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:19:03 +0000 (GMT)
Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153])
	by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DDTaH7008368	for <PSARC-ext@sun.com>; Thu,
 13 May 2010 16:19:01 +0000 (GMT)
Received: from abhmt015.oracle.com by acsmt354.oracle.com	with ESMTP id
 238773171273767532; Thu, 13 May 2010 09:18:52 -0700
Received: from [10.7.251.221] (/10.7.251.221)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 09:18:51 -0700
Date: Thu, 13 May 2010 17:18:46 +0100
From: Darren J Moffat <Darren.Moffat@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
To: John Sonnenschein <john.sonnenschein@oracle.com>
Cc: PSARC-ext@sun.com, Rich Burridge <rich.burridge@oracle.com>
Message-id: <4BEC2666.60309@Oracle.COM>
Organization: Oracle Solaris Security
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt353.oracle.com [141.146.40.153]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090205.4BEC2675.0179:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM> <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100315
 Lightning/1.0b1 OracleBeehiveExtension/1.0.0.0pre3 Thunderbird/3.0.3
Status: RO
Content-Length: 612

On 13/05/2010 17:00, John Sonnenschein wrote:
> nproc uses sysconf(3M) for determining the number of processors on Solaris which means that zones with CPU pools will see the number in the pool, rather than the number in the machine.

That is the answer I was hoping for, I was a little worried it might 
have done something else.

> It may be worthwhile updating the documentation to reflect this, but then again sysconf(3C) itself is not documented in this way.

I don't think you need to update the upstream documentation.

I have no issue with nproc being delivered as part of this case.

-- 
Darren J Moffat

From Darren.Moffat@oracle.com Thu May 13 09:25:55 2010
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGPtE4026716
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:25:55 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DGPsRt010260
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 09:25:55 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0030L9N66400@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 10:25:54 -0600 (MDT)
Received: from brmea-mail-2.sun.com ([192.18.98.43])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00CO89N685C0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 10:25:54 -0600 (MDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-2.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DGPrph008098	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:25:54 +0000 (GMT)
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DGPSQP023463; Thu, 13 May 2010 16:25:40 +0000 (GMT)
Received: from abhmt015.oracle.com by acsmt353.oracle.com	with ESMTP id
 238790961273767923; Thu, 13 May 2010 09:25:23 -0700
Received: from [10.7.251.221] (/10.7.251.221)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 09:25:23 -0700
Date: Thu, 13 May 2010 17:25:20 +0100
From: Darren J Moffat <Darren.Moffat@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
To: =?UTF-8?B?0L7Qu9GM0LPQsCDQutGA0YvQttCw0L3QvtCy0YHQutCw0Y8=?=
 <olga.kryzhanovska@gmail.com>
Cc: John Sonnenschein <john.sonnenschein@oracle.com>, PSARC-ext@sun.com,
        Rich Burridge <rich.burridge@oracle.com>
Message-id: <4BEC27F0.3060804@Oracle.COM>
Organization: Oracle Solaris Security
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8; format=flowed
Content-transfer-encoding: 8BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090209.4BEC2804.016A:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100315
 Lightning/1.0b1 OracleBeehiveExtension/1.0.0.0pre3 Thunderbird/3.0.3
Status: RO
Content-Length: 1174

On 13/05/2010 17:18, ольга крыжановская wrote:
> AFAIK scripts should use getconf tags NPROCESSORS_CONF,
> NPROCESSORS_MAX or NPROCESSORS_ONLN (or just NPROCESSORS_ONLN because
> it describes the number of currently online cores) to determinate the
> number of processors it can use. This works on almost all platforms
> (Linux, FreeBSD, OpenBSD) and within ksh93's getconf.

It doesn't work with the /usr/bin/getconf on current OpenSolaris builds, 
but you are correct it does with with the ks93 built in getconf

However this case isn't about what "scripts" should or should not do and 
any mention of POSIX or POSIX features isn't releveant.  It is about 
delivering the GNU coreutils as they are.  Several people in the GNU 
community obviously thought the nproc tool was useful otherwise it 
wouldn't be in the coreutils package.

The reason I asked about the implementation was to make sure that the 
tool was using sysconf(3M) or something else "sensible" rather that 
doing something platform specific - I asked because I saw mention of 
Linux /proc and /sys in the GNU coreutils changelog in the context of 
the nproc program.

-- 
Darren J Moffat

From olga.kryzhanovska@gmail.com Thu May 13 09:34:16 2010
Received: from sunmail6brm.central.sun.com (sunmail6brm.Central.Sun.COM [129.147.4.169])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGYGKp026796
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:34:16 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail6brm.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DGYDxd029299
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 11:34:15 -0500 (CDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0043VA126A00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 09:34:14 -0700 (PDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001Y5A11MC60@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 09:34:13 -0700 (PDT)
Received: from relay14i.sun.com
 (ip124.net129179-4.block1.us.syntegra.com [129.179.4.124])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DGOHaI013571	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:34:13 +0000 (GMT)
Received: from mmp13es.mmp.us.syntegra.com ([160.41.208.13] [160.41.208.13])
 by relay14i.sun.com with ESMTP id BT-MMP-3372368 for PSARC-ext@sun.com; Thu,
 13 May 2010 16:34:13 +0000 (Z)
Received: from relay13i.sun.com (relay13i.sun.com [129.179.4.123])
 by mmp13es.mmp.us.syntegra.com with ESMTP id BT-MMP-202377375 for
 PSARC-ext@sun.com; Thu, 13 May 2010 16:34:12 +0000 (Z)
Received: from mail-px0-f177.google.com ([209.85.212.177] [209.85.212.177])
 by relay1i.sun.com with ESMTP id BT-MMP-62335188 for PSARC-ext@sun.com; Thu,
 13 May 2010 16:34:12 +0000 (Z)
Received: by pxi1 with SMTP id 1so756689pxi.8 for <PSARC-ext@sun.com>; Thu,
 13 May 2010 09:34:08 -0700 (PDT)
Received: by 10.115.38.22 with SMTP id q22mr98136waj.41.1273768448526; Thu,
 13 May 2010 09:34:08 -0700 (PDT)
Received: by 10.231.1.37 with HTTP; Thu, 13 May 2010 09:34:08 -0700 (PDT)
Date: Thu, 13 May 2010 18:34:08 +0200
From: =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= <olga.kryzhanovska@gmail.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC27F0.3060804@Oracle.COM>
To: Darren J Moffat <Darren.Moffat@oracle.com>
Cc: John Sonnenschein <john.sonnenschein@oracle.com>, PSARC-ext@sun.com,
        Rich Burridge <rich.burridge@oracle.com>
Message-id: <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to
 :references:date:message-id:subject:from:to:cc:content-type
 :content-transfer-encoding; bh=dtK24HMN05Hy/pdc9+FowH6SmTRUkUxptnpExbn3vyQ=;
 b=EGWCCtCTuDgkwk99RonRvDat/68+GtkHYi6SJPvSbK4MIK09qmHVkEZqgnM3D4EmQG
 uylIAoy83Rnh8GiuD97Rf2tcpxYXQxo4/f2Bq6CkjjuQqYL+RaPv5VrrAW+vQLYTlQWr
 zgq3gSrps4yvW8SnHvvJQOBWd3pEmGJTyrSeE=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type:content-transfer-encoding;
 b=o3wcp4UuoSk+afZvc1RPXUopJRK6kJKztYy533nSIsg/psVaHCMj4Y6oS4wHBv5ynI
 +sWVN/MaVzHkq1tPlxpkCHk09ewLvLpZEd6BgmQMWISI5dtnBcT/lYxpGeY0FvbXCbeu
 B4uWQYlHXyNki90EkR6ku4d2PDG43CMjXLJ8E=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=-0.2/5.0, scanned in 0.226sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
 <4BEC27F0.3060804@Oracle.COM>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sac.sfbay.sun.com id o4DGYGKp026796
Status: RO
Content-Length: 2013

Solaris /usr/bin/**/getconf have a couple of bugs, that's just an old
one you're hitting.

nproc is in the coreutils package because getconf is part of glibc and
not of coreutils and the coreutils authors have already stated their
disapproval for the getconf interface. I'd expect that each time
getconf has a useful application for coreutils users the coreutils
team just adds an own interface utility for it.

Olga

2010/5/13 Darren J Moffat <Darren.Moffat@oracle.com>:
> On 13/05/2010 17:18, ольга крыжановская wrote:
>>
>> AFAIK scripts should use getconf tags NPROCESSORS_CONF,
>> NPROCESSORS_MAX or NPROCESSORS_ONLN (or just NPROCESSORS_ONLN because
>> it describes the number of currently online cores) to determinate the
>> number of processors it can use. This works on almost all platforms
>> (Linux, FreeBSD, OpenBSD) and within ksh93's getconf.
>
> It doesn't work with the /usr/bin/getconf on current OpenSolaris builds, but
> you are correct it does with with the ks93 built in getconf
>
> However this case isn't about what "scripts" should or should not do and any
> mention of POSIX or POSIX features isn't releveant.  It is about delivering
> the GNU coreutils as they are.  Several people in the GNU community
> obviously thought the nproc tool was useful otherwise it wouldn't be in the
> coreutils package.
>
> The reason I asked about the implementation was to make sure that the tool
> was using sysconf(3M) or something else "sensible" rather that doing
> something platform specific - I asked because I saw mention of Linux /proc
> and /sys in the GNU coreutils changelog in the context of the nproc program.
>
> --
> Darren J Moffat
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`


From Darren.Moffat@oracle.com Thu May 13 09:37:54 2010
Received: from newsunmail1brm.central.sun.com (newsunmail1brm.Central.Sun.COM [129.147.62.245])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGbr4H026840
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:37:54 -0700 (PDT)
Received: from nwk-avmta-2.sfbay.sun.com (nwk-avmta-2.SFBay.Sun.COM [129.145.155.6])
	by newsunmail1brm.central.sun.com (8.13.7+Sun/8.13.7/ENSMAIL,v2.4) with ESMTP id o4DGbrs5004079
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 10:37:53 -0600 (MDT)
Received: from pmxchannel-daemon.nwk-avmta-2.sfbay.sun.com by
 nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0040NA757G00@nwk-avmta-2.sfbay.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 09:37:53 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-2.sfbay.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001QQA74VB20@nwk-avmta-2.sfbay.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 09:37:52 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DGbqxt011052	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:37:52 +0000 (GMT)
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DGDxT5014300; Thu, 13 May 2010 16:37:48 +0000 (GMT)
Received: from abhmt014.oracle.com by acsmt353.oracle.com	with ESMTP id
 262448301273768655; Thu, 13 May 2010 09:37:35 -0700
Received: from [10.7.251.221] (/10.7.251.221)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 09:37:35 -0700
Date: Thu, 13 May 2010 17:37:32 +0100
From: Darren J Moffat <Darren.Moffat@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
To: =?UTF-8?B?0L7Qu9GM0LPQsCDQutGA0YvQttCw0L3QvtCy0YHQutCw0Y8=?=
 <olga.kryzhanovska@gmail.com>
Cc: John Sonnenschein <john.sonnenschein@oracle.com>, PSARC-ext@sun.com,
        Rich Burridge <rich.burridge@oracle.com>
Message-id: <4BEC2ACC.5080607@Oracle.COM>
Organization: Oracle Solaris Security
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8; format=flowed
Content-transfer-encoding: 8BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090204.4BEC2ADC.0148:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
 <4BEC27F0.3060804@Oracle.COM>
 <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100315
 Lightning/1.0b1 OracleBeehiveExtension/1.0.0.0pre3 Thunderbird/3.0.3
Status: RO
Content-Length: 619

On 13/05/2010 17:34, ольга крыжановская wrote:
> Solaris /usr/bin/**/getconf have a couple of bugs, that's just an old
> one you're hitting.
>
> nproc is in the coreutils package because getconf is part of glibc and
> not of coreutils and the coreutils authors have already stated their
> disapproval for the getconf interface. I'd expect that each time
> getconf has a useful application for coreutils users the coreutils
> team just adds an own interface utility for it.

Interesting information but it shouldn't impact the outcome of this case 
to deliever GNU coreutils as is.

-- 
Darren J Moffat

From olga.kryzhanovska@gmail.com Thu May 13 09:48:06 2010
Received: from sunmail3mpk.sfbay.sun.com (sunmail3mpk.SFBay.Sun.COM [129.146.11.52])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGm6FT027007
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:48:06 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail3mpk.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DGm6MJ022033
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 09:48:06 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D00505AO69E00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 10:48:06 -0600 (MDT)
Received: from sca-ea-mail-4.sun.com ([192.18.43.22])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00CGHAO58EE0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 10:48:05 -0600 (MDT)
Received: from relay43i.sun.com ([192.5.209.74])
	by sca-ea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DGfGV4017484	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:48:05 +0000 (GMT)
Received: from mmp43es.mmp.us.syntegra.com ([160.41.221.12] [160.41.221.12])
 by relay43i.sun.com with ESMTP id BT-MMP-773015 for PSARC-ext@sun.com; Thu,
 13 May 2010 16:48:04 +0000 (Z)
Received: from relay45i.sun.com (relay45i.sun.com [192.5.209.94])
 by mmp43es.mmp.us.syntegra.com with ESMTP id BT-MMP-149721004 for
 PSARC-ext@sun.com; Thu, 13 May 2010 16:48:04 +0000 (Z)
Received: from mail-pv0-f177.google.com ([74.125.83.177] [74.125.83.177])
 by relay4i.sun.com with ESMTP id BT-MMP-9081515 for PSARC-ext@sun.com; Thu,
 13 May 2010 16:48:04 +0000 (Z)
Received: by mail-pv0-f177.google.com with SMTP id 3so138840pvg.8 for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 09:47:14 -0700 (PDT)
Received: by 10.141.106.21 with SMTP id i21mr6372110rvm.40.1273769234177; Thu,
 13 May 2010 09:47:14 -0700 (PDT)
Received: by 10.231.1.37 with HTTP; Thu, 13 May 2010 09:47:13 -0700 (PDT)
Date: Thu, 13 May 2010 18:47:13 +0200
From: =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= <olga.kryzhanovska@gmail.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC2ACC.5080607@Oracle.COM>
To: Darren J Moffat <Darren.Moffat@oracle.com>
Cc: John Sonnenschein <john.sonnenschein@oracle.com>, PSARC-ext@sun.com,
        Rich Burridge <rich.burridge@oracle.com>
Message-id: <AANLkTikXX3A3q1Fx-B8Wb3hB3Ys7MgaD6wcedcpUFVXo@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=gmail.com;
 s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to
 :references:date:message-id:subject:from:to:cc:content-type
 :content-transfer-encoding; bh=482WzdXla7VqrIYzDovI7vLV80tlJ4HvoAenRGpk4Mg=;
 b=R3BWgZj6heXC1AlcDaMywLI8GU/ajH1Sm0JDzoA0CJENh0d3z3MYZe1t5pnhqavxa8
 tSNSQA72DsPaQpCeK0mJErO3bSjBTwhHKvn2TMgX6QJwnDuKRo7IR0kFoYdZKmUcYBr1
 G6e4jhGILgWKIFLwXkxIOfdmBL5RMH0TIiuE4=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=gmail.com; s=gamma;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type:content-transfer-encoding;
 b=BD53e/W271N4LTuXwppUZXBzYyMzkRXUXqZLZ4VL3uvcxdgUDdMpO/1/khzBy8JZ40
 32xTTtZI19wRXjt0PxjCnhr+9NG1tV3w8Sa6D1q8KpOOZGtuM6UXebq3orIL7tMIAJEt
 RZY+MsXhI3FEq0epBQga7Y8hE4wFmoVoJA/KQ=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Antispam: No, score=-0.2/5.0, scanned in 0.073sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
 <4BEC27F0.3060804@Oracle.COM>
 <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
 <4BEC2ACC.5080607@Oracle.COM>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sac.sfbay.sun.com id o4DGm6FT027007
Status: RO
Content-Length: 1622

No, it shouldn't impact the outcome of this case.
I explained where nproc came from. It also has an impact on script
portability because nproc is completely non standard (the lack of
getconf on old platforms and the buggies of getconf implementations
like Solaris getconf is the reason why ksh93 has a built in getconf).

A nit: Maybe the nproc(1) man page should contain the warning:
===== cut =====
nproc is not portable across platforms. Portable scripts shall use the
output of NPROCESSORS_ONLN to determinate the number of active
processing elements in a system.
===== cut =====

Olga

2010/5/13 Darren J Moffat <Darren.Moffat@oracle.com>:
> On 13/05/2010 17:34, ольга крыжановская wrote:
>>
>> Solaris /usr/bin/**/getconf have a couple of bugs, that's just an old
>> one you're hitting.
>>
>> nproc is in the coreutils package because getconf is part of glibc and
>> not of coreutils and the coreutils authors have already stated their
>> disapproval for the getconf interface. I'd expect that each time
>> getconf has a useful application for coreutils users the coreutils
>> team just adds an own interface utility for it.
>
> Interesting information but it shouldn't impact the outcome of this case to
> deliever GNU coreutils as is.
>
> --
> Darren J Moffat
>



-- 
      ,   _                                    _   ,
     { \/`o;====-    Olga Kryzhanovska   -====;o`\/ }
.----'-/`-/     olga.kryzhanovska@gmail.com   \-`\-'----.
 `'-..-| /       http://twitter.com/fleyta     \ |-..-'`
      /\/\     Solaris/BSD//C/C++ programmer   /\/\
      `--`                                      `--`


From Darren.Moffat@Oracle.COM Thu May 13 09:51:41 2010
Received: from sunmail2sca.sfbay.sun.com (sunmail2sca.SFBay.Sun.COM [129.145.155.234])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DGpfDR027025
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 09:51:41 -0700 (PDT)
Received: from brm-avmta-1.central.sun.com (brm-avmta-1.Central.Sun.COM [129.147.4.11])
	by sunmail2sca.sfbay.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DGpe2O003617
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 09:51:41 -0700 (PDT)
Received: from pmxchannel-daemon.brm-avmta-1.central.sun.com by
 brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0052FAU4LM00@brm-avmta-1.central.sun.com> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 10:51:40 -0600 (MDT)
Received: from sca-ea-mail-1.sun.com ([192.18.43.24])
 by brm-avmta-1.central.sun.com
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D00CRJAU28EE0@brm-avmta-1.central.sun.com> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 10:51:39 -0600 (MDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by sca-ea-mail-1.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o4DGpce2005504	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 16:51:38 +0000 (GMT)
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DGpVd1018922; Thu, 13 May 2010 16:51:31 +0000 (GMT)
Received: from abhmt006.oracle.com by acsmt355.oracle.com	with ESMTP id
 238871141273769475; Thu, 13 May 2010 09:51:15 -0700
Received: from [10.7.251.221] (/10.7.251.221)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 09:51:14 -0700
Date: Thu, 13 May 2010 17:51:11 +0100
From: Darren J Moffat <Darren.Moffat@Oracle.COM>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <AANLkTikXX3A3q1Fx-B8Wb3hB3Ys7MgaD6wcedcpUFVXo@mail.gmail.com>
To: =?UTF-8?B?0L7Qu9GM0LPQsCDQutGA0YvQttCw0L3QvtCy0YHQutCw0Y8=?=
 <olga.kryzhanovska@gmail.com>
Cc: John Sonnenschein <john.sonnenschein@Oracle.COM>, PSARC-ext@sun.com,
        Rich Burridge <rich.burridge@Oracle.COM>
Message-id: <4BEC2DFF.9000600@Oracle.COM>
Organization: Oracle Solaris Security
MIME-version: 1.0
Content-type: text/plain; charset=UTF-8; format=flowed
Content-transfer-encoding: 8BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090209.4BEC2E16.0180:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
 <4BEC27F0.3060804@Oracle.COM>
 <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
 <4BEC2ACC.5080607@Oracle.COM>
 <AANLkTikXX3A3q1Fx-B8Wb3hB3Ys7MgaD6wcedcpUFVXo@mail.gmail.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100315
 Lightning/1.0b1 OracleBeehiveExtension/1.0.0.0pre3 Thunderbird/3.0.3
Status: RO
Content-Length: 830

On 13/05/2010 17:47, ольга крыжановская wrote:
> No, it shouldn't impact the outcome of this case.
> I explained where nproc came from. It also has an impact on script
> portability because nproc is completely non standard (the lack of
> getconf on old platforms and the buggies of getconf implementations
> like Solaris getconf is the reason why ksh93 has a built in getconf).
>
> A nit: Maybe the nproc(1) man page should contain the warning:
> ===== cut =====
> nproc is not portable across platforms. Portable scripts shall use the
> output of NPROCESSORS_ONLN to determinate the number of active
> processing elements in a system.
> ===== cut =====

Please submit that upstream, this project team and case should not be 
adding that to the upstream projects documentation in my opinion.

-- 
Darren J Moffat

From pickychris@googlemail.com Thu May 13 10:04:38 2010
Received: from sunmail6brm.central.sun.com (sunmail6brm.Central.Sun.COM [129.147.4.169])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DH4cTB027560
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 10:04:38 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail6brm.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DH4btJ017055
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 12:04:37 -0500 (CDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D00B2LBFP8800@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 10:04:37 -0700 (PDT)
Received: from brmea-mail-1.sun.com ([192.18.98.31])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001G9BFKMG70@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 10:04:32 -0700 (PDT)
Received: from relay11i.sun.com
 (ip121.net129179-4.block1.us.syntegra.com [129.179.4.121])
	by brmea-mail-1.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DH20C4025071	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 17:04:32 +0000 (GMT)
Received: from mmp11es.mmp.us.syntegra.com ([160.41.208.11] [160.41.208.11])
 by relay11i.sun.com with ESMTP id BT-MMP-1905270 for PSARC-ext@sun.com; Thu,
 13 May 2010 17:04:32 +0000 (Z)
Received: from relay13i.sun.com (relay13i.sun.com [129.179.4.123])
 by mmp11es.mmp.us.syntegra.com with ESMTP id BT-MMP-204660914 for
 PSARC-ext@sun.com; Thu, 13 May 2010 17:04:31 +0000 (Z)
Received: from mail-gx0-f217.google.com ([209.85.217.217] [209.85.217.217])
 by relay1i.sun.com with ESMTP id BT-MMP-62392788 for PSARC-ext@sun.com; Thu,
 13 May 2010 17:04:31 +0000 (Z)
Received: by gxk9 with SMTP id 9so960941gxk.8 for <PSARC-ext@sun.com>; Thu,
 13 May 2010 10:04:25 -0700 (PDT)
Received: by 10.101.132.8 with SMTP id j8mr6598088ann.117.1273770262116; Thu,
 13 May 2010 10:04:22 -0700 (PDT)
Received: by 10.100.142.6 with HTTP; Thu, 13 May 2010 10:04:21 -0700 (PDT)
Date: Thu, 13 May 2010 19:04:21 +0200
From: Chris Pickett <pkchris@users.sourceforge.net>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <4BEC2DFF.9000600@Oracle.COM>
Sender: pickychris@googlemail.com
To: Darren J Moffat <Darren.Moffat@oracle.com>
Cc: =?KOI8-R?B?z8zYx8Egy9LZ1sHOz9fTy8HR?= <olga.kryzhanovska@gmail.com>,
        John Sonnenschein <john.sonnenschein@oracle.com>,
        Rich Burridge <rich.burridge@oracle.com>, PSARC-ext@sun.com
Message-id: <AANLkTimw_fvNACz2Eq_vvhxa7Xw0ZyjyhvBD1D6yYEMs@mail.gmail.com>
MIME-version: 1.0
Content-type: text/plain; charset=KOI8-R
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;        d=googlemail.com;
 s=gamma;        h=domainkey-signature:mime-version:received:sender:received
 :in-reply-to:references:date:x-google-sender-auth:message-id:subject
 :from:to:cc:content-type:content-transfer-encoding;
 bh=O1ROiqiDmP/kpie1mVVra7IUh6n3qNV1JjDPkxz40FY=;
 b=rEgYeta6PQlhYoZz10fsYb0OSXgocxK0RoJ99nBDKl5sg+LAZXY0gDHJEp/0iEX4Xp
 xI+QJstkpsnaqAH7TfOxlVjiR8GBIViEI3uYEa3hRg1TUfZNmlp3YlgmmEOY23+H9hA3
 UJsvfgjJt9cB/PrKn4hW1Pc/NbrdM0xCYWrtc=
DomainKey-Signature: a=rsa-sha1; c=nofws;        d=googlemail.com; s=gamma;
 h=mime-version:sender:in-reply-to:references:date
 :x-google-sender-auth:message-id:subject:from:to:cc:content-type
 :content-transfer-encoding;
 b=DLEcj1l33TyoV1Y6IIKxVXF4jEb0h7tQDruyAGaXDVE+aU5A5O1IVTa8oQzquh08U+
 8dUxU0E1kkBN/E2jAhb3B0de1znzbSmMMq0GzoT4aoyZl6DoZPnKTbXPl/g3EaDf/OtY
 xxVbeZJNMJ0dmbQVAhGEeo04pI9Bew/YxRlQQ=
X-PMX-Version: 5.4.1.325704
X-Brightmail-Tracker: AAAAAA==
X-Google-Sender-Auth: Nm18q4bjvCvbvlczui1RqBc4HbQ
X-Antispam: No, score=0.0/5.0, scanned in 0.419sec at (localhost [127.0.0.1])
	by smf-spamd v1.3.1 - http://smfs.sf.net/
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
 <4BEC27F0.3060804@Oracle.COM>
 <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
 <4BEC2ACC.5080607@Oracle.COM>
 <AANLkTikXX3A3q1Fx-B8Wb3hB3Ys7MgaD6wcedcpUFVXo@mail.gmail.com>
 <4BEC2DFF.9000600@Oracle.COM>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by sac.sfbay.sun.com id o4DH4cTB027560
Status: RO
Content-Length: 1393

2010/5/13 Darren J Moffat <Darren.Moffat@oracle.com>:
> On 13/05/2010 17:47,   wrote:
>>
>> No, it shouldn't impact the outcome of this case.
>> I explained where nproc came from. It also has an impact on script
>> portability because nproc is completely non standard (the lack of
>> getconf on old platforms and the buggies of getconf implementations
>> like Solaris getconf is the reason why ksh93 has a built in getconf).
>>
>> A nit: Maybe the nproc(1) man page should contain the warning:
>> ===== cut =====
>> nproc is not portable across platforms. Portable scripts shall use the
>> output of NPROCESSORS_ONLN to determinate the number of active
>> processing elements in a system.
>> ===== cut =====
>
> Please submit that upstream, this project team and case should not be adding
> that to the upstream projects documentation in my opinion.

HA HA. Nice joke.

The last person who tried to suggest that parts of coreutils promote
unportable scripting was kicked off the coreutils list and got a few
interesting other lists subscriptions, such as the famous nazi.org
SIEG HEIL list. The coreutils team and McGrath/Drepper are mortal
enemies; neither team will add a comment in their own documentation
that the other team is right. Forget that quickly.

Chris
-- 
    ^---^
   (@)v(@)  Chris Pickett
   |    /   IT consultant
 ===m==m=== pkchris@users.sourceforge.net


From john.sonnenschein@oracle.com Thu May 13 10:41:42 2010
Received: from sunmail6brm.central.sun.com (sunmail6brm.Central.Sun.COM [129.147.4.169])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DHfgLs028505
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 10:41:42 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail6brm.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DHffUW006126
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 12:41:42 -0500 (CDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D00K25D5HGH00@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 10:41:41 -0700 (PDT)
Received: from sca-ea-mail-2.sun.com ([192.18.43.25])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001QXD5FM2A0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 10:41:39 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by sca-ea-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id o4DHfc9o002168	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 17:41:38 +0000 (GMT)
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DHRmYj023239; Thu, 13 May 2010 17:41:33 +0000 (GMT)
Received: from abhmt009.oracle.com by acsmt354.oracle.com	with ESMTP id
 262668461273772485; Thu, 13 May 2010 10:41:25 -0700
Received: from [10.156.59.13] (/10.156.59.13)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 10:41:24 -0700
Date: Thu, 13 May 2010 10:40:31 -0700
From: John Sonnenschein <john.sonnenschein@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <AANLkTimw_fvNACz2Eq_vvhxa7Xw0ZyjyhvBD1D6yYEMs@mail.gmail.com>
To: Chris Pickett <pkchris@users.sourceforge.net>
Cc: Darren J Moffat <Darren.Moffat@oracle.com>,
        =?KOI8-R?Q?=CF=CC=D8=C7=C1?= =?KOI8-R?Q?_=CB=D2=D9=D6=C1=CE=CF=D7=D3=CB=C1=D1?=
 <olga.kryzhanovska@gmail.com>,
        Rich Burridge <rich.burridge@oracle.com>, PSARC-ext@sun.com
Message-id: <4BEC398F.40207@oracle.com>
MIME-version: 1.0
Content-type: text/plain; charset=KOI8-R; format=flowed
Content-transfer-encoding: 8BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090202.4BEC39CD.01AA:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <4BEC179A.5030009@Oracle.COM>
 <D4A45094-C41D-4F1D-83E2-2B6F57F20A6D@oracle.com>
 <AANLkTilKVQYiKEF78sGftwdDd7Lm6SY4il1Hk8fFjVx7@mail.gmail.com>
 <4BEC27F0.3060804@Oracle.COM>
 <AANLkTilDuz8ccIGnDPj15Dt-hDn05EFQ4cxoHPL0AQuf@mail.gmail.com>
 <4BEC2ACC.5080607@Oracle.COM>
 <AANLkTikXX3A3q1Fx-B8Wb3hB3Ys7MgaD6wcedcpUFVXo@mail.gmail.com>
 <4BEC2DFF.9000600@Oracle.COM>
 <AANLkTimw_fvNACz2Eq_vvhxa7Xw0ZyjyhvBD1D6yYEMs@mail.gmail.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.7) Gecko/20100214
 Lightning/1.0b1 Thunderbird/3.0.1
Status: RO
Content-Length: 2055

I fail to see how any of this is relevant to this case.

The stability level of nproc is "unstable" and interfaces work on 
Solaris, which is the only platform we're concerned with.

If an end user is comfortable using an interface which is disclosed as 
unstable, and does the due diligence to see that the interface is 
available on the platforms he or she wishes to use, then that is their 
prerogative. Failing to deliver an interface because nobody else (or 
nobody else but Linux) has would be deadlock.

Now, can we please take the GNU internal politics to GNU lists or some 
other medium as they have absolutely no architectural relevance?

-JohnS

On 05/13/10 10:04 AM, Chris Pickett wrote:
> 2010/5/13 Darren J Moffat<Darren.Moffat@oracle.com>:
>    
>> On 13/05/2010 17:47,   wrote:
>>      
>>> No, it shouldn't impact the outcome of this case.
>>> I explained where nproc came from. It also has an impact on script
>>> portability because nproc is completely non standard (the lack of
>>> getconf on old platforms and the buggies of getconf implementations
>>> like Solaris getconf is the reason why ksh93 has a built in getconf).
>>>
>>> A nit: Maybe the nproc(1) man page should contain the warning:
>>> ===== cut =====
>>> nproc is not portable across platforms. Portable scripts shall use the
>>> output of NPROCESSORS_ONLN to determinate the number of active
>>> processing elements in a system.
>>> ===== cut =====
>>>        
>> Please submit that upstream, this project team and case should not be adding
>> that to the upstream projects documentation in my opinion.
>>      
> HA HA. Nice joke.
>
> The last person who tried to suggest that parts of coreutils promote
> unportable scripting was kicked off the coreutils list and got a few
> interesting other lists subscriptions, such as the famous nazi.org
> SIEG HEIL list. The coreutils team and McGrath/Drepper are mortal
> enemies; neither team will add a comment in their own documentation
> that the other team is right. Forget that quickly.
>
> Chris
>    


From rich.burridge@oracle.com Thu May 13 11:11:31 2010
Received: from sunmail6brm.central.sun.com (sunmail6brm.Central.Sun.COM [129.147.4.169])
	by sac.sfbay.sun.com (8.13.8+Sun/8.13.8) with ESMTP id o4DIBVBS029132
	for <psarc-ext@sac.sfbay.sun.com>; Thu, 13 May 2010 11:11:31 -0700 (PDT)
Received: from nwk-avmta-1.SFBay.Sun.COM (nwk-avmta-1.SFBay.Sun.COM [129.146.11.74])
	by sunmail6brm.central.sun.com (8.13.8+Sun/8.13.8/ENSMAIL,v2.4) with ESMTP id o4DIBU3i020560
	for <@sunmail2sca.sfbay.sun.com:PSARC-ext@sun.com>; Thu, 13 May 2010 13:11:31 -0500 (CDT)
Received: from pmxchannel-daemon.nwk-avmta-1.sfbay.Sun.COM by
 nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 id <0L2D0044VEJ6T000@nwk-avmta-1.sfbay.Sun.COM> for PSARC-ext@sun.com
 (ORCPT PSARC-ext@sun.com); Thu, 13 May 2010 11:11:30 -0700 (PDT)
Received: from brmea-mail-4.sun.com ([192.18.98.36])
 by nwk-avmta-1.sfbay.Sun.COM
 (Sun Java System Messaging Server 6.2-3.04 (built Jul 15 2005))
 with ESMTP id <0L2D001P4EJ4M2C0@nwk-avmta-1.sfbay.Sun.COM> for
 PSARC-ext@sun.com (ORCPT PSARC-ext@sun.com); Thu,
 13 May 2010 11:11:28 -0700 (PDT)
Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227])
	by brmea-mail-4.sun.com (8.13.6+Sun/8.12.9) with ESMTP id o4DIBRvA016494	for
 <PSARC-ext@sun.com>; Thu, 13 May 2010 18:11:28 +0000 (GMT)
Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155])
	by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1)
 with ESMTP id o4DIBNGV023755	for <PSARC-ext@sun.com>; Thu,
 13 May 2010 18:11:25 +0000 (GMT)
Received: from abhmt004.oracle.com by acsmt354.oracle.com	with ESMTP id
 239140431273774231; Thu, 13 May 2010 11:10:31 -0700
Received: from [129.146.228.20] (/129.146.228.20)
	by default (Oracle Beehive Gateway v4.0)	with ESMTP ; Thu,
 13 May 2010 11:10:31 -0700
Date: Thu, 13 May 2010 11:12:49 -0700
From: Rich Burridge <rich.burridge@oracle.com>
Subject: Re: GNU coreutils 8.5 [PSARC/2010/170 FastTrack timeout 05/20/2010]
In-reply-to: <C7315563-5B7E-4A81-B2A5-953E99800643@oracle.com>
To: John Sonnenschein <john.sonnenschein@oracle.com>
Cc: Alan Coopersmith <alan.coopersmith@oracle.com>, PSARC-ext@sun.com
Message-id: <4BEC4121.4060201@oracle.com>
MIME-version: 1.0
Content-type: text/plain; charset=ISO-8859-1; format=flowed
Content-transfer-encoding: 7BIT
X-PMX-Version: 5.4.1.325704
X-Source-IP: acsmt355.oracle.com [141.146.40.155]
X-Auth-Type: Internal IP
X-CT-RefId: str=0001.0A090204.4BEC40CE.007A:SCFMA4539814,ss=1,fgs=0
References: <4BEC073E.5030506@oracle.com> <4BEC0A5B.8050209@oracle.com>
 <C7315563-5B7E-4A81-B2A5-953E99800643@oracle.com>
User-Agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.9.1.8) Gecko/20100412
 Thunderbird/3.0.3
Status: RO
Content-Length: 2340

On 05/13/10 08:19, John Sonnenschein wrote:
>
> On 2010-05-13, at 7:19 AM, Alan Coopersmith wrote:
>
>>>         Between 7.4 and 8.5, the following new command was introduced:
>>>
>>>         /usr/bin/
>>>                 nproc
>>>                        Location                     Uncommitted
>>>                        Invocation                   Uncommitted
>>>                        Human-readable output        Not an Interface
>>
>>
>> The Coreutils.8.5.txt also mentions stdbuf as a new command added in 7.5,
>> and the man page for it is included.   Will this case also be adding it
>> to /usr/bin since there is no existing conflicting utility there?  Same
>> stability levels as nproc?
>
> Yes this was an omission on my part. stdbuf will be included, and with the same stability levels as nproc. Apologies

I've updated the proposal.txt in the case directory to reflect this change:

sac% sccs diffs -C proposal.txt

------- proposal.txt -------
*** /tmp/sccs.6wai14    Thu May 13 11:08:17 2010
--- proposal.txt        Thu May 13 11:08:09 2010
***************
*** 48,53 ****
--- 48,54 ----

           /usr/bin/
                   nproc
+                 stdbuf
                          Location                     Uncommitted
                          Invocation                   Uncommitted
                          Human-readable output        Not an Interface
***************
*** 76,82 ****
          printf      ptx         pwd         readlink    rm
          rmdir       runcon      seq         sha1sum     sha224sum
          sha256sum   sha384sum   sha512sum   shred       shuf
!        sleep       sort        split       stat        stty
          sum         sync        tac         tail        tee
          test        timeout     touch       tr          true
          truncate    tsort       tty         uname       unexpand
--- 77,83 ----
          printf      ptx         pwd         readlink    rm
          rmdir       runcon      seq         sha1sum     sha224sum
          sha256sum   sha384sum   sha512sum   shred       shuf
!        sleep       sort        split       stat        stdbuf       stty
          sum         sync        tac         tail        tee
          test        timeout     touch       tr          true
          truncate    tsort       tty         uname       unexpand
sac%


