0

When I created a shared memory segment, I used an Integer for the shared memory key. Now, I need to know the limit in the int number for this key.

I know the limit in int32 is 2147483647 and the limit in int64 is 9223372036854775807

If I create a shared memory with the number 9223372036854775807 and 9223372036854775800, the key reference is 0xffffffff and 0xfffffff8.

I think that the ipcs -m response, doesn't show all the hex digits. What is the limit, and how do I confirm that ipcs -m works as it should?

Michael Gaskill
  • 7,913
  • 10
  • 38
  • 43
  • the silence indicates how often php programmers actually use shard memory functions –  Jul 08 '15 at 00:39
  • maybe it is a advanced topic for many php programmers – Eduardo Wallace Jul 08 '15 at 14:48
  • XDDD LOL!!! usually php functions correspond to linux/posix functions... for example shmop_open corresponds to https://man7.org/linux/man-pages/man3/shm_open.3.html maybe you can ask for C/C++ using those calls and answer will be the same... – user1039663 Apr 10 '23 at 21:23

0 Answers0