For a deeper look into our Elektron API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
33 9 12 29

LPC 1.2.0 Linux failed to access shared memory

LPC 1.2.0 Linux install.
The client met the 'Failed to access shared memory' issue when tried to start the lpc, It failed from time to time.
Is there recommended approach to check and configure the shared memory for LPC launching?

1647401747521.png

lpc
1647401747521.png (57.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
Upvote
Accepted
78.2k 246 52 72

@Frederic

The shared memory key may be used by another process. You can verify the shared memory key used by LPC in the lpc.cnf.

!!
!!      Shared memory configuration
!!
*maxSemaphores : 6
*admin*maxClients : 10
*lpc*admin*semaphoreKey : 90
*lpc*admin*sharedMemoryKey : 90
*lpc*admin*sharedMemorySize : 1000000
*lpc*admin*enableChildStats : False
*lpc*admin*enableRootStats : True
*lpc*admin*enableMemoryStats : True

You can run the ipcs command to verify the used shared memory key.

[root@1a0c6c8cf009 config]# ipcs

------ Message Queues --------
key        msqid      owner      perms      used-bytes   messages

------ Shared Memory Segments --------
key        shmid      owner      perms      bytes      nattch     status
0x0000005a 0          root       664        1000432    1

------ Semaphore Arrays --------
key        semid      owner      perms      nsems
0x0000005a 0          root       666        6

0x0000005a is a hexadecimal number of 90.

You can change the number of sharedMemoryKey in the LPC configuration file.

Otherwise, you may verify if another LPC process is running on the machine.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.