Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9140069
  • 博文数量: 1725
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19840
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1725)

文章存档

2024年(1)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: LINUX

2012-12-24 16:03:10

ubuntu x64, 编译库 使用 make -j4 -j8 时会自动重启,开始还以为是CPU 过热引起,其实不是,这是 OS BUG。

在编译 buildroot时就会发生这种问题, 这是可以修改 package/Makefile.in 文件。把 PARALLEL_JOBS设置成 2 或者 1 即可。或者直接配置 buildroot menuconfig 时 制定 BR2_LEVEL = 2 或者 1

  9 # If BR2_LEVEL is 0, scale the maximum concurrency with the number of
 10 # CPUs.  A coefficient of 2 is used in order to keep processors busy
 11 # while waiting on I/O.
 12 ifeq ($(BR2_JLEVEL),0)
 13 PARALLEL_JOBS:=$(shell echo \
 14     $$((2 * `getconf _NPROCESSORS_ONLN 2>/dev/null || echo 1`)))
 15 else
 16 PARALLEL_JOBS:=$(BR2_JLEVEL)
 17 endif

对CPU 过热,使用如下方式

cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies 找出最大最小值。

udo apt-get install sysfsutils

sudo vim /etc/sysfs.conf

That will open a file, you need to add the following lines to that file (at the end of it):

devices/system/cpu/cpu0/cpufreq/scaling_governor = ondemand
devices/system/cpu/cpu0/cpufreq/scaling_max_freq = MAX
devices/system/cpu/cpu0/cpufreq/scaling_min_freq = MIN


阅读(4134) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~