Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7525489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T03:33:42+00:00 2026-05-30T03:33:42+00:00

I am using kubuntu 10.10 with a 4 cores cpu. When I use ‘make

  • 0

I am using kubuntu 10.10 with a 4 cores cpu. When I use ‘make -j2’ to build a cpp project, 2 core’s cup usage become 100%, desktop environment become no response, and build procedure make no progress.

Version info:

The GNU make's version is 3.81 
gcc version 4.4.5 (Ubuntu/Linaro 4.4.4-14ubuntu5)

How to resolve this problem? Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T03:33:44+00:00Added an answer on May 30, 2026 at 3:33 am

    There’s not really enough information here to give you a definitive answer. First it’s not clear if this happens only when you run with -j2. What if you run without parallelism (no -j)? When you say “2 core’s CPU usage [goes to] 100%”, what is happening on those CPUs? If you run “top” in another terminal and then start your build, what is showing in top?

    Alternatively, if you run “make -d -j2” what program(s) is make running right before the CPU goes to 100%?

    The fact that the desktop is unresponsive as well hints at some other problem, rather than CPU usage, since you have 4 cores and only 2 are busy. Maybe something is chewing up all your RAM? Does the system come back after a while (indicating that the OOM killer got involved and stomped something)?

    If none of that helps, you can run make under strace, something like “strace -f make -j2” and see if you can figure out what is going on. This will generate a metric ton or two of output but if, when the CPU is pegged, you see something running over and over and over you might get a hint.

    Basically I can see these possibilities:

    1. It’s not make at all, but rather whatever command make is running that’s just bringing your system down. You imply it’s just compiling C++ code so that seems unlikely unless there’s a bug somewhere.
    2. Make is recursing infinitely. Make will rebuild its own makefile, plus any included makefile, then re-exec itself. If you are not a bit careful defining rules for rebuilding included makefiles make can decide they’re always out of date and rebuild/rexec forever.
    3. Something else

    Hopefully the above hints will set you on a path to discovering what’s going on.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using PyObjC , you can use Python to write Cocoa applications for OS X.
Using VS2008, C#, .Net 2 and Winforms how can I make a regular Button
Using JDeveloper , I started developing a set of web pages for a project
I am using a Kubuntu image using VMWare. In order to share files between
I've been developing a desktop application using Qt Creator under Linux (Kubuntu). Under linux,
I'va installed cppunit library on my kubuntu 11.10, using this command: sudo apt-get install
I am using Aptana Studio 3 and having trouble creating a rails project in
I'm using kubuntu with kernel 2.6.38-12-generic I want to read 16 random numbers from
I'm on a Kubuntu 11 system and trying out my first Qt Quick project.
I am trying to run eclipse and encounter the errors. I am using Kubuntu

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.