You are not logged in.

#1 2010-12-14 15:12:34

b4data
Member
Registered: 2010-12-14
Posts: 141

[SOLVED] Kernel compiling with cpulimit?

Hi everyone.

I'm trying to compile the kernel26-ck package from the aur.

Everything is going fine, my only problem is that this maxes out my cpu and, after a while my laptop overheats and shuts off.

Is there any way to cpulimit can be of any help here? I've tried it, but compiling seems to involve the creating and destroying of lots of processes. Using the -p argument seems impossible in this regard, and using -e for the related processes just yields output like this -

Warning: no target process found. Waiting for it...
Process 5829 detected
Process 5829 dead!
Warning: no target process found. Waiting for it...
Process 5940 detected
Process 5940 dead!
Warning: no target process found. Waiting for it...

If anyone can give me some suggestions to help me with this I would be most grateful.

FWIW, I've tried other ways of reducing heat. My BIOS doesn't allow me to underclock, I'm not running X, I've even tried putting the laptop in the coldest room of my house but to no avail.

Here is some info on my hardware -

*-core
       description: Motherboard
       product: Rhea B
       vendor: NEC COMPUTERS INTERNATIONAL
       physical id: 0
       version: FAB-2
       serial: 12345678
     *-firmware
          description: BIOS
          vendor: Insyde Software Corporation
          physical id: 0
          version: R1.18
          date: 06/16/2005
          size: 84KiB
          capacity: 448KiB
          capabilities: pci pcmcia pnp apm upgrade shadowing cdboot edd int13floppynec int13floppy720 int13floppy2880 int5printscreen int9keyboard int17printer int10video acpi usb ls120boot zipboot smartbattery netboot
     *-cpu
          description: CPU
          product: Intel(R) Celeron(R) M processor         1.50GHz
          vendor: Intel Corp.
          physical id: 4
          bus info: cpu@0
          version: 6.13.8
          slot: mPGA478
          size: 1500MHz
          capacity: 1500MHz
          width: 32 bits
          clock: 133MHz
          capabilities: fpu fpu_exception wp vme de pse tsc msr pae mce cx8 sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts
        *-cache:0
             description: L1 cache
             physical id: 5
             slot: L1 Cache
             size: 32KiB
             capacity: 32KiB
             capabilities: burst pipeline-burst internal write-back
        *-cache:1
             description: L2 cache
             physical id: 6
             slot: L2 Cache
             size: 1MiB
             capacity: 1MiB
             capabilities: burst pipeline-burst external write-back

Thanks for your time smile

Last edited by b4data (2010-12-15 10:09:59)

Offline

#2 2010-12-14 15:18:23

lifeafter2am
Member
From: 127.0.0.1
Registered: 2009-06-10
Posts: 1,332

Re: [SOLVED] Kernel compiling with cpulimit?

Can you use CPU frequency scaling?


#binarii @ irc.binarii.net
Matrix Server: https://matrix.binarii.net
-------------
Allan -> ArchBang is not supported because it is stupid.

Offline

#3 2010-12-14 15:26:04

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: [SOLVED] Kernel compiling with cpulimit?

Making a celeron M overheating under normal conditions is almost impossible. I have one of those working fanless...
YOU MUST OPEN your laptop and clean all the dust from the fan and heatsink. Forget about the rest. If you dont do that, your will damage your laptop, 100% sure.
Have fun!

ps: celeron M is only 1 cpu and doesn't have any frequency scaling.

Last edited by TigTex (2010-12-14 15:27:09)


.::. TigTex @ Portugal .::.

Offline

#4 2010-12-14 15:31:48

b4data
Member
Registered: 2010-12-14
Posts: 141

Re: [SOLVED] Kernel compiling with cpulimit?

@lifeafter2am

[user@laptop] [15:24|Tue Dec 14] [~] >> cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: p4-clockmod
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 10.00 ms.
  hardware limits: 188 MHz - 1.50 GHz
  available frequency steps: 188 MHz, 375 MHz, 563 MHz, 750 MHz, 938 MHz, 1.13 GHz, 1.31 GHz, 1.50 GHz
  available cpufreq governors: performance
  current policy: frequency should be within 188 MHz and 1.50 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.50 GHz

@TigTex

I was afraid this might be the answer. Unfortunatly I am out in the sticks at the moment and have no access to appropriate tools!

Thanks for the replies.

Offline

#5 2010-12-14 15:43:04

TigTex
Member
From: Portugal
Registered: 2008-06-19
Posts: 301

Re: [SOLVED] Kernel compiling with cpulimit?

That's not frequency scaling. p4-clockmod is pure throttling and doesn't help anything at all (voltages are the same). It only makes the same action take more time to complete with no powersaving extras.
Making your cpu run at 750mhz should be enough to keep it below 105ºC, but since that cpu is so slow, making it run at half speed is not a good idea unless you want to spend +5 hours compiling your kernel.
You should open the laptop, clean the heatsink and fan once you have the tools. Meanwhile, don't use that pc.
That's just my opinion wink


.::. TigTex @ Portugal .::.

Offline

#6 2010-12-14 15:46:06

dyscoria
Member
Registered: 2008-01-10
Posts: 1,007

Re: [SOLVED] Kernel compiling with cpulimit?

b4data wrote:

Hi everyone.

I'm trying to compile the kernel26-ck package from the aur.

Everything is going fine, my only problem is that this maxes out my cpu and, after a while my laptop overheats and shuts off.

Is there any way to cpulimit can be of any help here? I've tried it, but compiling seems to involve the creating and destroying of lots of processes.

On the cpulimit website:

cpulimit.sourceforge.net wrote:

Launch a process by command line and limit it to 40% (in development version only!):

$ cpulimit --limit 40 /etc/rc.d/rc.boinc start

So I guess if you install the development version, you could do something like:

$ cpulimit --limit 40 makepkg

flack 2.0.6: menu-driven BASH script to easily tag FLAC files (AUR)
knock-once 1.2: BASH script to easily create/send one-time sequences for knockd (forum/AUR)

Offline

#7 2010-12-15 10:08:11

b4data
Member
Registered: 2010-12-14
Posts: 141

Re: [SOLVED] Kernel compiling with cpulimit?

Thanks for the input everyone smile

As soon as I get the chance I'm giving the laptop a thorough clean.

For now though I've gone with the scaling option. I'd never really played with it before, but I managed to get it running and it worked like a charm. Running at 750MHz and letting the compile take longer wasn't a problem as I left it run overnight.

@dyscoria, I tried that option, and initially it seemed to be working, although once it hit the actual compiling, the processes used weren't appearing as child processes so therefore weren't covered. At least, that was my understanding of it. If anyone would like to chime in it would be interesting to hear peoples opinions on that.

Marking this as [SOLVED], thanks again.

Last edited by b4data (2010-12-15 12:52:36)

Offline

Board footer

Powered by FluxBB