Skip to content
Snippets Groups Projects
  1. Jun 03, 2024
    • Robert Schmidt's avatar
      threadCreate(): check for and handle missing SYS_NICE · 66bf27bc
      Robert Schmidt authored
      SYS_NICE is a capability that allows a process to set thread affinity
      and priority, among other things (see capabilities(7) for more info).
      
      In this commit, add a function that allows to determine if the process
      has this capability, and try to change the thread affinity and priority,
      if requested. If the capability does not exist, the function will simply
      not attempt to change the corresponding thread attributes.
      
      To determine if the process has SYS_NICE, libcap can be used. However,
      it might not be installed by default. To avoid requiring another
      dependency, if we detect that libcap is not present, use a workaround by
      try to set a real-time scheduling policy; if it's present, or can be
      changed, we assume that the process has SYS_NICE (and clean up, if
      relevant).
      
      Simplify reading of capabilities
      66bf27bc
    • Robert Schmidt's avatar
      Remove set_latency_target(), add lock_memory_to_ram() · 6b37d183
      Robert Schmidt authored
      set_latency_target() attempts to set keep "low latency" by
      - writing a specific latency to /dev/cpu_dma_latency
      - setting manually the minimum CPU processor frequency to be the maximum
      
      There is no functionality to undo this after stopping the softmodem(s),
      and most users are probably not even aware that OAI does this. It is
      generally preferable to set this beforehand using a governor or by
      disabling sleep states (as outlined in the tutorial, and in a follow-up
      commit in the performance tuning docs).
      
      The previous mlockall() call, to lock memory to RAM, is retained in a
      new function. There were additional mlockall() calls, which have been
      replaced with lock_memory_to_ram(), where necessary.
      6b37d183
    • Robert Schmidt's avatar
      Remove Check if fedora and inside kernel · a25b209e
      Robert Schmidt authored
      It's completely unclear what this is supposed to do.
      a25b209e
  2. Jan 23, 2024
  3. Mar 12, 2023
  4. Jan 12, 2023
  5. Oct 14, 2022
  6. Aug 16, 2022
  7. Mar 31, 2022
  8. Jan 13, 2022
  9. Jan 10, 2022
  10. Dec 17, 2021
  11. Dec 10, 2021
  12. Sep 21, 2021
  13. Sep 13, 2021
  14. Sep 09, 2021
  15. Sep 03, 2021
  16. Aug 31, 2021
  17. Jul 02, 2021
  18. Jun 14, 2021
  19. Jun 09, 2021
  20. May 26, 2021
  21. May 25, 2021
  22. Apr 13, 2021
  23. Apr 02, 2021
  24. Jun 01, 2020
  25. Mar 06, 2020
  26. Mar 02, 2020
  27. Jan 09, 2020
  28. Jul 11, 2019
  29. Jun 18, 2019
  30. May 14, 2019
  31. Apr 30, 2019
  32. Jan 07, 2019
    • Cédric Roux's avatar
      fix a lot of file mode · aea6b4b5
      Cédric Roux authored
      For whatever reason most of the files had their permission
      changed from 644 to 755, which is not wanted.
      aea6b4b5
  33. Apr 06, 2018
  34. Apr 05, 2018
  35. Oct 23, 2017
Loading