Results 1 to 6 of 6

Thread: All cpu cores on startup question

  1. #1
    Join Date
    Jan 2013
    Beans
    18

    All cpu cores on startup question

    Hi,

    According to http://www.itworld.com/software/306665/speed-ubuntu-1210-using-all-cpu-cores-during-startup , the instructions are asking for change CONCURRENCY = "none" to CONCURRENCY="makefile".

    if [ "none" != "$CONCURRENCY" ] ; then
    test -s /etc/init.d/.depend.boot || CONCURRENCY="none"
    test -s /etc/init.d/.depend.start || CONCURRENCY="none"
    test -s /etc/init.d/.depend.stop || CONCURRENCY="none"
    if test -e /etc/init.d/.legacy-bootordering ; then
    CONCURRENCY="none"
    fi
    startpar -v > /dev/null 2>&1 || CONCURRENCY="none"
    fi
    Do I edit all of concurrency or just the one under legacy-bootordering?

    Sorry for the stupid question. I'm running ubuntu 12.10 on my Dell studio 1535.

    Thanks in advanced
    Last edited by HatoExB; January 8th, 2013 at 07:07 AM. Reason: left out ubuntu version

  2. #2
    Join Date
    Aug 2012
    Beans
    Hidden!

    Re: All cpu cores on startup question

    Quote Originally Posted by HatoExB View Post
    Hi,

    According to http://www.itworld.com/software/306665/speed-ubuntu-1210-using-all-cpu-cores-during-startup , the instructions are asking for change CONCURRENCY = "none" to CONCURRENCY="makefile".

    if [ "none" != "$CONCURRENCY" ] ; then
    test -s /etc/init.d/.depend.boot || CONCURRENCY="none"
    test -s /etc/init.d/.depend.start || CONCURRENCY="none"
    test -s /etc/init.d/.depend.stop || CONCURRENCY="none"
    if test -e /etc/init.d/.legacy-bootordering ; then
    CONCURRENCY="none"
    fi
    startpar -v > /dev/null 2>&1 || CONCURRENCY="none"
    fi
    Do I edit all of concurrency or just the one under legacy-bootordering?

    Sorry for the stupid question. I'm running ubuntu 12.10 on my Dell studio 1535.

    Thanks in advanced
    I've bolded the line I see the linked guide as referring to. That is the line I'd try changing.

  3. #3
    Join Date
    Dec 2005
    Location
    Western Australia
    Beans
    11,480
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: All cpu cores on startup question

    Code:
    if test -e /etc/init.d/.legacy-bootordering; then
    CONCURRENCY="none"
    On my system, /etc/init.d/.legacy-bootordering does not exist, so the next line does not run. Looks like .legacy-bootordering is a file you can create if you want to force Upstart to work like the old-fashioned Init system. Like a switch that is turned off by default.

    In other words, this HOWTO does nothing useful at all!

    Upstart uses concurrency by default, where it's appropriate of course. Back in the days before Upstart I think we all tried that "concurrency" trick
    I try to treat the cause, not the symptom. I avoid the terminal in instructions, unless it's easier or necessary. My instructions will work within the Ubuntu system, instead of breaking or subverting it. Those are the three guarantees to the helpee.

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,616
    Distro
    Ubuntu

    Re: All cpu cores on startup question

    Makefile is the default from 12.04 at least on up.
    Besides you're looking at the wrong area of the file, the line is more towards the beginning of the file around line 20 or 30. It's one of the first uncommented lines in the file. And it is a stand alone line.

    Look for this:

    Code:
    # Specify method used to enable concurrent init.d scripts.
    # Valid options are 'none' and 'makefile'.  Obsolete options
    # used earlier are 'shell' and 'startpar'.  The obsolete options
    # are aliases for 'makefile' since 2010-05-14.  The default since
    # the same date is 'makefile', as the init.d scripts in Debian now
    # include dependency information and are ordered using this
    # information.  See insserv for information on dependency based
    # boot sequencing.
    CONCURRENCY=makefile
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  5. #5
    Join Date
    Apr 2005
    Beans
    104
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: All cpu cores on startup question

    The line at the beginning (line 31) is already set to makefile in my install (12.10).

    Changing the other line (line 108) stops my laptop from shutting down (or at least it didn't shut down for 5 mins) - core i7 processor, and made no discernible difference to startup time.

  6. #6
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,616
    Distro
    Ubuntu

    Re: All cpu cores on startup question

    Quote Originally Posted by marks_linux View Post
    The line at the beginning (line 31) is already set to makefile in my install (12.10).

    Changing the other line (line 108) stops my laptop from shutting down (or at least it didn't shut down for 5 mins) - core i7 processor, and made no discernible difference to startup time.
    In other words, it's best to leave well enough alone.

    It seems the how-to tip is a bit antiquated.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

Bookmarks

Posting Permissions

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