Results 1 to 3 of 3

Thread: How to change /proc/sys/kernel/perf_event_paranoid permanently

  1. #1

    Default How to change /proc/sys/kernel/perf_event_paranoid permanently

    I have the newest Tumbleweed system. How can I change /proc/sys/kernel/perf_event_paranoid from 2 to 0?
    I learned that it doesn't work with vi and with echo 2 > ... it won't be permanent. As I also found some warnings about this
    I want to ask before I do anything I don't really understand.

    The reason is that I want to use intel's vTune.

    Thanks!

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,380

    Default Re: How to change /proc/sys/kernel/perf_event_paranoid permanently

    As the /proc file system does not really exist, but is a way to have an interface to kernel parameters/structures, it only exists as long as the kernel runs. Thus it is gone at shutdown. So not permanent changes there.

    As perf_event_paranoid is a kernel parameter, there are several options to change it:
    • generate your kernel with the parameter set to your wish, not something that you will prefer imho;
    • add it to the line with the kernel parameters in the GRUB2 configuration using YaST > System > Bootloader;
    • add the line
      Code:
      echo 2 >/proc/sys/kernel/perf_event_paranoid
      to /etc/init.d/boot.local.


    BTW, I have no idea what the result of that setting is, this is only a technical description on how to do it, not if it is save or beneficial.

    BTW in my openSUSE 13.1 system it is set to 1., not to 0 as you say it is in your Tumbleweed.
    Henk van Velden

  3. #3

    Default Re: How to change /proc/sys/kernel/perf_event_paranoid permanently

    Thanks for the info. BTW default was 2 in my TW.

Posting Permissions

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