Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-12867

glibc: Improve arc4random performance

    • None
    • None
    • 461cab1de747f3842f27a5d24977d78d561d45f9
    • rhel-sst-pt-libraries
    • ssg_platform_tools
    • 3
    • False
    • Hide

      None

      Show
      None
    • No
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified Release Note Type - Unknown
    • All
    • None

      The arc4random function currently does not perform any userspace buffering. This means we incur the system call overhead. In upstream Linux 6.5, there appears to be a chacha_permute call for every getrandom system call.

      Linus Torvalds recommends userspace buffering: Re: [PATCH v14 2/7] mm: add VM_DROPPABLE for designating always lazily freeable mappings

              ashankar@redhat.com Arjun Shankar
              fweimer@redhat.com Florian Weimer
              Florian Weimer
              Platform Tools - Libraries Bot Platform Tools - Libraries Bot
              Martin Coufal Martin Coufal
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated: