mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Information & Answers (https://www.mersenneforum.org/forumdisplay.php?f=38)
-   -   Another mprime is already running (https://www.mersenneforum.org/showthread.php?t=18995)

tshinozk 2013-12-10 14:37

Another mprime is already running
 
I have several machines where mprimes are running.
Each mprime started automatically from a start-up script in the boot sequence.

I found that the mprime shows very occasionally "Another mprime is already running!" and the mprime do not run.
I checked if duplicate processes of the mprime are running, but I did not find another process of mprime.
After it happens, I run the mprime again manually, the mprime is successfully running.
I find that it happens after accidently reboot of the system.
I see a process ID entry in local.txt. The entry has the old process ID, but it may be no problem.

I see the source code.
mprime compares i-nodes of the processes of the old PID and the running PID.
It does work well in simple systems.
My machines have multiple HDDs and multiple partitions.
The value of i-node is unique in a single file system.
Maybe, the i-node of mprime in my secondary disk conflicts to an i-node of a program in root partition.

Thanks.

pinhodecarlos 2013-12-10 15:38

Offtopic. Are you the Seventeen or Bust top Producer?

Prime95 2013-12-10 16:07

In the next release I'll check that filedata.st_dev also matches.

Prime95 2013-12-10 16:26

The problem may be due to inode being defined as 32-bits (at compile time) where your filesystem is 64-bits.

Can a Linux expert look at the code and recommend the most portable way to use fstat -- keeping in mind that the source code is used to build both 32-bit and 64-bit executables?


All times are UTC. The time now is 00:01.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.