bind CPUs to the process?

Ask a Question related to AIX, Design and Development.

  1. #1

    Default bind CPUs to the process?

    Hello,
    We are using AIX5L V5.2.
    I'd like to know if AIX support binding multiple CPUs to one process
    (single process, multiple threads)?
    Does anyone use this way for your production system?
    Is there any new features in V5 talking about CPU bound applications?
    If we use 32-bit process, how much the space can be used by the user's
    data? (my testing show it is only 2G. Am I missing something?)
    BTW, the process I mentioned here is the application server which is
    written in JAVA. There is no I/O concern during the whole processing.

    Thanks in advance,
    Rosaline

    Rosaline Fan Guest

  2. Similar Questions and Discussions

    1. how to share cpu busyness across all the cpus
      jayl-news@accelerant.net (Jay Lessert) wrote in message news:<7109f92b.0403291403.57671b97@posting.google.com>... We used to have this problem on...
    2. Licensing DB2 UDB EE 8 cpus <---> 2 x 4 cpus
      Is a DB2 UDB EE 8 cpu license (1 system) equivalent to 2 times a 4 cpu license (2 systems)? Bernard Dhooghe
    3. runstats use all the CPUs?
      Hi, When will db2 runstats can utilize all the CPUs on a SMP, rather than only one of them? I remembered I saw somewhere that db2 udb V8.x will...
    4. CPUs on p670
      Hi, As far as I know, pSeries 679 can have 4, 8 or 16 CPUs POWER4(+) installed. I'd like to know why a configuration with 12 CPUs is not...
    5. 2 2.4 cpus vs. 4 1.4 cpus
      Allen wrote: As always with Oracle - the answer is; it depends (upon your application) Is it more cpu or more i/o bound. A simple matrix can...
  3. #2

    Default Re: bind CPUs to the process?

    Rosaline Fan <fanruox@sbcglobal.net> wrote:
    RF> Hello,
    RF> We are using AIX5L V5.2.
    RF> I'd like to know if AIX support binding multiple CPUs to one process
    RF> (single process, multiple threads)?

    Yes:

    [url]http://www.google.com/search?&q=aix+bindprocessor[/url]

    RF> Does anyone use this way for your production system?

    Some people use Workload Manager (WLM) for resource control.
    It's part of AIX 5.x, IIRC:

    [url]http://www.google.com/search?&q=WLM+AIX[/url]

    RF> Is there any new features in V5 talking about CPU bound applications?

    Not sure what you mean.

    RF> If we use 32-bit process, how much the space can be used by the user's
    RF> data? (my testing show it is only 2G. Am I missing something?)

    Two GB is the maximum positive value of a 32-bit signed integer,
    or so my shoddy math tells me:

    $ perl -wle 'print int eval (((0xffffffff>>1)/1024)/1024);'
    2047

    But I forget about all of AIX's use-this-flag-to-access- memory-segment-42
    bells and whistles. Wait for Gary Hook to pipe up. (Gary's famous.
    He even has a 1-900 hotline for obscure AIX questions. :-)

    RF> BTW, the process I mentioned here is the application server which is
    RF> written in JAVA. There is no I/O concern during the whole processing.

    Java? You'll definitely need the memory. :-)

    --
    "Why shouldn't I top-post?" [url]http://www.aglami.com/tpfaq.html[/url]
    "Meanings are another story." [url]http://www.ifas.org/wa/glossolalia.html[/url]
    Nicholas Dronen Guest

  4. #3

    Default Re: bind CPUs to the process?

    Rosaline Fan wrote:
    > We are using AIX5L V5.2.
    > I'd like to know if AIX support binding multiple CPUs to one process
    > (single process, multiple threads)?
    > Does anyone use this way for your production system?
    > Is there any new features in V5 talking about CPU bound applications?
    > If we use 32-bit process, how much the space can be used by the user's
    > data? (my testing show it is only 2G. Am I missing something?)
    > BTW, the process I mentioned here is the application server which is
    > written in JAVA. There is no I/O concern during the whole processing.
    try 'man bindprocessor'

    Cheers,

    Ken



    Ken Wallis Guest

  5. #4

    Default Re: bind CPUs to the process?

    Nicholas Dronen wrote:
    > Rosaline Fan <fanruox@sbcglobal.net> wrote:
    > RF> Hello,
    > RF> We are using AIX5L V5.2.
    > RF> I'd like to know if AIX support binding multiple CPUs to one process
    > RF> (single process, multiple threads)?
    >
    > [url]http://www.google.com/search?&q=aix+bindprocessor[/url]
    Although it's unclear why you would want to do that. WLM
    would be more suitable for constraining CPU use, and if all you
    want is to run a thread on any CPU, the system will handle that
    for you.
    > RF> If we use 32-bit process, how much the space can be used by the user's
    > RF> data? (my testing show it is only 2G. Am I missing something?)
    >
    >
    > But I forget about all of AIX's use-this-flag-to-access- memory-segment-42
    > bells and whistles.
    You can make a program a large data program using
    LDR_CNTRL=MAXDATA=0xD0000000/DSA
    which allows up to 3.25 GB of heap space for the process. You
    lose access to the shared lib segments, tho, and modules will
    get stuck into segment 2 at exec, the heap for dynamic loads.

    If you're talking about Java, you probably don't want to do
    this. I don't think the JVM supports DSA (dynamic segment
    allocation). If you need more space, use the 64-bit version
    of Java (on 64-bit hardware).

    --
    Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
    __________________________________________________ ______________________

    Gary R. Hook Guest

  6. #5

    Default Re: bind CPUs to the process?



    "Gary R. Hook" wrote:
    > Nicholas Dronen wrote:
    >
    > > Rosaline Fan <fanruox@sbcglobal.net> wrote:
    > > RF> Hello,
    > > RF> We are using AIX5L V5.2.
    > > RF> I'd like to know if AIX support binding multiple CPUs to one process
    > > RF> (single process, multiple threads)?
    > >
    > > [url]http://www.google.com/search?&q=aix+bindprocessor[/url]
    >
    > Although it's unclear why you would want to do that. WLM
    > would be more suitable for constraining CPU use, and if all you
    > want is to run a thread on any CPU, the system will handle that
    > for you.
    Thanks Gary and Nicholas. That is very helpful.
    My fault, I have been supporting db server so long time. Sometimes it is not a
    good thing. DB2 agent is single process, single thread, so there is no way for
    one db2agent use multiple processors. But the application server I am talking
    here is single process/multiple threads,... so I don't need BINDING any more.
    >
    >
    > > RF> If we use 32-bit process, how much the space can be used by the user's
    > > RF> data? (my testing show it is only 2G. Am I missing something?)
    > >
    > >
    > > But I forget about all of AIX's use-this-flag-to-access- memory-segment-42
    > > bells and whistles.
    >
    > You can make a program a large data program using
    > LDR_CNTRL=MAXDATA=0xD0000000/DSA
    > which allows up to 3.25 GB of heap space for the process. You
    > lose access to the shared lib segments, tho, and modules will
    > get stuck into segment 2 at exec, the heap for dynamic loads.
    I did some testing today. For the 32bit C/C++ application, it can only be
    allowed to use 256M heap size. If you require a heap size more than 256M, I have
    to use LARGE MEMORY MODEL, or compile to 64bit application.
    >
    >
    > If you're talking about Java, you probably don't want to do
    > this. I don't think the JVM supports DSA (dynamic segment
    > allocation).
    Me either.
    For the 32bit JVM(1.4.x), I can set a bigger maximum heap size
    (1000000000bytes). (Maybe that is the reason why I can only attach 4 connections
    to db server shared memory).
    Even from the OS viewpoint both C/C++ application and Java application are the
    user processes. Even they use similar approach to increase the heap size (By
    sacrificing segments available for shared memory segments). Even JVM on AIX is
    also developed by IBM. But when setup/configure JVM maximum heap size, it has to
    follow the way on the other platforms which developed by SUN.
    Regards,
    Rosaline Fan
    > If you need more space, use the 64-bit version
    > of Java (on 64-bit hardware).
    >
    > --
    > Gary R. Hook / AIX PartnerWorld for Developers / These opinions are MINE
    > __________________________________________________ ______________________
    Rosaline Fan Guest

  7. #6

    Default Re: bind CPUs to the process?

    Thank you, Ken.
    Rosaline Fan

    Ken Wallis wrote:
    > Rosaline Fan wrote:
    >
    > > We are using AIX5L V5.2.
    > > I'd like to know if AIX support binding multiple CPUs to one process
    > > (single process, multiple threads)?
    > > Does anyone use this way for your production system?
    > > Is there any new features in V5 talking about CPU bound applications?
    > > If we use 32-bit process, how much the space can be used by the user's
    > > data? (my testing show it is only 2G. Am I missing something?)
    > > BTW, the process I mentioned here is the application server which is
    > > written in JAVA. There is no I/O concern during the whole processing.
    >
    > try 'man bindprocessor'
    >
    > Cheers,
    >
    > Ken
    Rosaline Fan Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139