转载请注明出处:

http://www.cnblogs.com/darkknightzh/p/5992693.html

参考网址:

http://blog.csdn.net/u012581999/article/details/52433609

https://ubuntuforums.org/showthread.php?t=2205211

http://realtechtalk.com/Linux_Ubuntu_Nvidia_GT430_LockupsErrorsFreezes_NVRM_os_schedule_Attempted_to_yield_the_CPU_while_in_atomic_or_interrupt_context-1243-articles

跑程序时,会莫名死机,而后/var/log/syslog中找到死机前时间的log,提示:

Attempted to yield the CPU while in atomic or interrupt context
NMI watchdog: BUG: soft lockup - CPU# stuck for 22s

https://ubuntuforums.org/showthread.php?t=2205211中说是nvidia驱动的问题。更新驱动后,可以解决。

http://realtechtalk.com/Linux_Ubuntu_Nvidia_GT430_LockupsErrorsFreezes_NVRM_os_schedule_Attempted_to_yield_the_CPU_while_in_atomic_or_interrupt_context-1243-articles中说电源老化的问题,换个新电源,就不会出现该问题了。

首先从官网下载ubuntu驱动:http://www.geforce.com/drivers

之后按照参考网址http://blog.csdn.net/u012581999/article/details/52433609中的步骤,安装最新的显卡驱动。

说明:1. 安装nvidia驱动时,会提示是否把Nouveau驱动放到黑名单中。点击是后,实际上还是在运行Nouveau驱动。估计是以为没用使用sudo update-initramfs –u命令吧。

2. 之后安装软件时,会提示x serve在运行。也不知道怎么弄的,后来驱动就安装成功了。。。

之后按照参考网址中说明安装即可。

ps:目前还不清楚是否能解决死机的问题。希望可以吧。

更新:该方法失败了。电脑还是会死机。。。

具体提示信息:

Oct  :: XXX kernel: [136595.363786] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136607.364150] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136609.364225] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136611.364299] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136613.364382] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136615.364456] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136617.364530] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136619.364613] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136621.364687] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136623.364760] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136625.364834] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136627.364907] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136629.364980] NVRM: os_schedule: Attempted to yield the CPU while in atomic or interrupt context
Oct :: XXX kernel: [136631.228969] NMI watchdog: BUG: soft lockup - CPU# stuck for 22s! [swapper/:]
Oct :: XXX kernel: [136631.228971] Modules linked in: intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp nvidia_uvm(POE) kvm_intel nvidia_modeset(POE) kvm input_leds irqbypass crct10dif_pclmul crc32_pclmul snd_hda_codec_realtek snd_hda_codec_hdmi snd_soc_rt5640 aesni_intel aes_x86_64 snd_soc_rl6231 snd_soc_ssm4567 snd_hda_codec_generic lrw snd_soc_core snd_hda_intel snd_hda_codec nvidia(POE) snd_hda_core snd_compress gf128mul ac97_bus snd_hwdep snd_pcm_dmaengine glue_helper snd_pcm ablk_helper snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq snd_seq_device dw_dmac dw_dmac_core snd_timer snd elan_i2c i2c_designware_platform cryptd soundcore mei_me serio_raw snd_soc_sst_acpi mei i2c_designware_core lpc_ich spi_pxa2xx_platform shpchp 8250_dw 8250_fintek acpi_pad mac_hid parport_pc ppdev lp parport autofs4 hid_generic usbhid i915 i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ahci drm psmouse r8169 libahci mii video sdhci_acpi sdhci i2c_hid hid fjes
Oct :: XXX kernel: [136631.229020] CPU: PID: Comm: swapper/ Tainted: P OEL 4.4.--generic #
Oct :: XXX kernel: [136631.229021] Hardware name: Gigabyte Technology Co., Ltd. Z97-HD3/Z97-HD3, BIOS F4 //
Oct :: XXX kernel: [136631.229031] task: ffffffff81e11500 ti: ffffffff81e00000 task.ti: ffffffff81e00000
Oct :: XXX kernel: [136631.229032] RIP: :[<ffffffffc06e244e>] [<ffffffffc06e244e>] _nv016047rm+0x16de/0x29e0 [nvidia]
Oct :: XXX kernel: [136631.229116] RSP: :ffff88022fa03b80 EFLAGS:
Oct :: XXX kernel: [136631.229117] RAX: RBX: ffff8800c4fd0008 RCX:
Oct :: XXX kernel: [136631.229117] RDX: RSI: RDI: ffff8800c4fd0008
Oct :: XXX kernel: [136631.229118] RBP: ffff880224655e18 R08: R09: ffffffffc0d1ca20
Oct :: XXX kernel: [136631.229118] R10: 00000000580bf844 R11: ffffffffc06dc170 R12:
Oct :: XXX kernel: [136631.229119] R13: R14: R15:
Oct :: XXX kernel: [136631.229120] FS: () GS:ffff88022fa00000() knlGS:
Oct :: XXX kernel: [136631.229121] CS: DS: ES: CR0:
Oct :: XXX kernel: [136631.229121] CR2: 0000555edc0e7088 CR3: 0000000001e0a000 CR4: 00000000001406f0
Oct :: XXX kernel: [136631.229122] DR0: DR1: DR2:
Oct :: XXX kernel: [136631.229123] DR3: DR6: 00000000fffe0ff0 DR7:
Oct :: XXX kernel: [136631.229123] Stack:
Oct :: XXX kernel: [136631.229124] ffffffffc06dc12e ffff8800c4fd0008 0000000000404e1e
Oct :: XXX kernel: [136631.229125] ffff8802249e95c4 ffffffffc06dc6bd ffff8800c4fd0008
Oct :: XXX kernel: [136631.229126] ffff8800c61a8008 ffff8800c61a0008 ffffffffc0776dd2 ffff8800c4fd0008
Oct :: XXX kernel: [136631.229127] Call Trace:
Oct :: XXX kernel: [136631.229128] <IRQ>
Oct :: XXX kernel: [136631.229205] [<ffffffffc06dc12e>] ? _nv009411rm+0x166e/0x1a80 [nvidia]
Oct :: XXX kernel: [136631.229281] [<ffffffffc06dc6bd>] ? _nv002124rm+0x17d/0x3cf0 [nvidia]
Oct :: XXX kernel: [136631.229366] [<ffffffffc0776dd2>] ? _nv012476rm+0x72/0xd0 [nvidia]
Oct :: XXX kernel: [136631.229451] [<ffffffffc0776b04>] ? _nv012578rm+0xd4/0x330 [nvidia]
Oct :: XXX kernel: [136631.229531] [<ffffffffc07cee2a>] ? _nv004888rm+0x5ea/0x25e0 [nvidia]
Oct :: XXX kernel: [136631.229610] [<ffffffffc07cf4e5>] ? _nv004888rm+0xca5/0x25e0 [nvidia]
Oct :: XXX kernel: [136631.229689] [<ffffffffc07d5cd2>] ? _nv014795rm+0x252/0x280 [nvidia]
Oct :: XXX kernel: [136631.229760] [<ffffffffc06e1b67>] ? _nv016047rm+0xdf7/0x29e0 [nvidia]
Oct :: XXX kernel: [136631.229830] [<ffffffffc06dc201>] ? _nv009411rm+0x1741/0x1a80 [nvidia]
Oct :: XXX kernel: [136631.229898] [<ffffffffc06dc23a>] ? _nv009411rm+0x177a/0x1a80 [nvidia]
Oct :: XXX kernel: [136631.229971] [<ffffffffc07090ff>] ? _nv010457rm+0x1f/0xb0 [nvidia]
Oct :: XXX kernel: [136631.230043] [<ffffffffc070bae6>] ? _nv010462rm+0x66/0xb0 [nvidia]
Oct :: XXX kernel: [136631.230115] [<ffffffffc083c45d>] ? _nv015780rm+0x8d/0xe0 [nvidia]
Oct :: XXX kernel: [136631.230185] [<ffffffffc083e777>] ? _nv015782rm+0x417/0x590 [nvidia]
Oct :: XXX kernel: [136631.230255] [<ffffffffc083c2b9>] ? _nv015781rm+0x69/0x180 [nvidia]
Oct :: XXX kernel: [136631.230308] [<ffffffffc09082d4>] ? _nv014345rm+0x1b4/0x1210 [nvidia]
Oct :: XXX kernel: [136631.230336] [<ffffffffc0430cc0>] ? nvidia_isr_bh+0x70/0x70 [nvidia]
Oct :: XXX kernel: [136631.230390] [<ffffffffc095893b>] ? rm_run_rc_callback+0x9b/0xe0 [nvidia]
Oct :: XXX kernel: [136631.230417] [<ffffffffc0430d07>] ? nvidia_rc_timer+0x47/0x80 [nvidia]
Oct :: XXX kernel: [136631.230420] [<ffffffff810eb215>] ? call_timer_fn+0x35/0x120
Oct :: XXX kernel: [136631.230448] [<ffffffffc0430cc0>] ? nvidia_isr_bh+0x70/0x70 [nvidia]
Oct :: XXX kernel: [136631.230449] [<ffffffff810ebbca>] ? run_timer_softirq+0x23a/0x2f0
Oct :: XXX kernel: [136631.230451] [<ffffffff81084961>] ? __do_softirq+0x101/0x290
Oct :: XXX kernel: [136631.230453] [<ffffffff81084c63>] ? irq_exit+0xa3/0xb0
Oct :: XXX kernel: [136631.230455] [<ffffffff8180b222>] ? smp_apic_timer_interrupt+0x42/0x50
Oct :: XXX kernel: [136631.230456] [<ffffffff818094e2>] ? apic_timer_interrupt+0x82/0x90
Oct :: XXX kernel: [136631.230457] <EOI>
Oct :: XXX kernel: [136631.230458] [<ffffffff8169ec61>] ? cpuidle_enter_state+0x111/0x2b0
Oct :: XXX kernel: [136631.230459] [<ffffffff8169ec4f>] ? cpuidle_enter_state+0xff/0x2b0
Oct :: XXX kernel: [136631.230460] [<ffffffff8169ee37>] ? cpuidle_enter+0x17/0x20
Oct :: XXX kernel: [136631.230462] [<ffffffff810c2b82>] ? call_cpuidle+0x32/0x60
Oct :: XXX kernel: [136631.230463] [<ffffffff8169ee13>] ? cpuidle_select+0x13/0x20
Oct :: XXX kernel: [136631.230464] [<ffffffff810c2e40>] ? cpu_startup_entry+0x290/0x350
Oct :: XXX kernel: [136631.230466] [<ffffffff817fc1bc>] ? rest_init+0x7c/0x80
Oct :: XXX kernel: [136631.230468] [<ffffffff81f57011>] ? start_kernel+0x481/0x4a2
Oct :: XXX kernel: [136631.230470] [<ffffffff81f56120>] ? early_idt_handler_array+0x120/0x120
Oct :: XXX kernel: [136631.230471] [<ffffffff81f56339>] ? x86_64_start_reservations+0x2a/0x2c
Oct :: XXX kernel: [136631.230472] [<ffffffff81f56485>] ? x86_64_start_kernel+0x14a/0x16d
Oct :: XXX kernel: [136631.230473] Code: c8 1b ff 0f c2 c0 fe 0f c0 d0 f9 c4 df ca 5b 5c 5d 5e <eb> f6 cd 4f 8d 4a 3c e7 4b XXX

(原+转)ubuntu16中莫名死机及重新安装显卡驱动的更多相关文章

  1. (原)ubuntu16中安装moses

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5653186.html 在ubuntu14中,可以使用下面的语句安装moses: luarocks in ...

  2. (原)Ubuntu16中安装nvidia的显卡驱动

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5638185.html part1 直接在“软件和更新-附加驱动”里面设置 安装完ubuntu16后,显 ...

  3. (原)Ubuntu16中安装cuda toolkit

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5655957.html 参考网址: https://devtalk.nvidia.com/default ...

  4. (原)ubuntu16中简单的使用google的protobuf

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5804395.html 参考网址: http://www.cnblogs.com/luosongchao ...

  5. (原)Ubuntu16中卸载并重新安装google的Protocol Buffers

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5782992.html 目前最新的是1.6.1 1. 卸载掉老版本的Protocol: sudo apt ...

  6. (原)Ubuntu16中使用nvidia官方提供的驱动,而非自带的驱动

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5638185.html 安装完ubuntu16后,显卡显示的是Gallium... 在“设置-软件和更新 ...

  7. (原)Ubuntu16中编译caffe

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5797526.html 参考网址: http://caffe.berkeleyvision.org/in ...

  8. (原)Ubuntu16 中安装torch版的cudnn

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5668471.html 参考网址: https://devtalk.nvidia.com/default ...

  9. (原)ubuntu16中编译boost1.61.0库

    转载请注明出处: http://www.cnblogs.com/darkknightzh/p/5797940.html 参考网址: http://www.boost.org/doc/libs/1_61 ...

随机推荐

  1. C/C++中的const int*和int * const

    代码: #include <iostream> using namespace std; int main(){ const int *p; ; p = &a; a = ; cou ...

  2. 洛谷 P3383 【模板】线性筛素数

    P3383 [模板]线性筛素数 题目描述 如题,给定一个范围N,你需要处理M个某数字是否为质数的询问(每个数字均在范围1-N内) 输入输出格式 输入格式: 第一行包含两个正整数N.M,分别表示查询的范 ...

  3. HDU 5044 离线LCA算法

    昨天写了HDU 3966 ,本来这道题是很好解得,结果我想用离线LCA 耍一把,结果发现离线LCA 没理解透,错了好多遍,终得AC ,这题比起 HDU 3966要简单,因为他不用动态查询.但是我还是错 ...

  4. Ajax中send方法参数的使用

    一般情况下,使用Ajax提交的参数多是些简单的字符串,可以直接使用GET方法将要提交的参数写到open方法的url参数中,此时send方法的参数为null. 例如 : var url = " ...

  5. Python(四):数字连珠2

    对上次的代码作了一些修改.在码的过程中发现,最核心的部分是在横向.竖向和两个对角方向上找到5个以上相同的数字. 自己的思路是将x行y列所在的x行.y列,以及以此为交叉点的两点对角线上的数字,转化成字符 ...

  6. JAVA单元测试Junit

    1.为什么要用Junit 做了很多项目,几乎没怎么用过Java的单元测试,是因为它没有用吗?显然不是,是自己的开发方式太不规范!对于大型的软件项目,单元测试不仅有效实用,还非常有必要!它能够测试每个方 ...

  7. C语言一维指针的深入理解

    指针是C语言中广泛使用的一种数据类型.运用指针编程是C语言最主要的风格之一. 利用指针变量可以表示各种数据结构:能很方便地使用数组和字符串:并能象汇编语言一样处理内存地址,从而编出精练而高效的程序.指 ...

  8. iOS 面试题集合

      ASIDownloadCache 设置下载缓存 它对Get请求的响应数据进行缓存(被缓存的数据必需是成功的200请求): [ASIHTTPRequest setDefaultCache:[ASID ...

  9. C语言日期时间标准库

    用思维导图整理: 代码: #include <stdio.h> #include <time.h> #include <string.h> int main() { ...

  10. 关于在C#中实现AOP 拦截编程模式的新的探索

    前面有篇文章,是从其他个人博客中贴过来的.地址:http://www.lanhusoft.com/Article/240.html 作者总结实现的挺好. 但是.不能不考虑性能!!使用 ContextB ...