Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Can QSharedMemory be assumed to stay in physical memory?
Forum Updated to NodeBB v4.3 + New Features

Can QSharedMemory be assumed to stay in physical memory?

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 2.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tkrajacic
    wrote on last edited by
    #1

    Or, can I prevent shared memory from being paged out, so a pointer to the memory is constant? (Or is this the case anyway?)

    Using mlock() for example?

    Thanks,
    Thomas

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tobias.hunger
      wrote on last edited by
      #2

      The pointer is constant, independent of whether the os pages out the memory or not.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        dangelog
        wrote on last edited by
        #3

        You can't assume it stays in physical memory (so: mlock it) -- that doesn't imply that the address of the shared segment changes.

        Software Engineer
        KDAB (UK) Ltd., a KDAB Group company

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tkrajacic
          wrote on last edited by
          #4

          Thank you for your helpful answers.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved