Thread 'ACTIVE_TASK::start(): can't create memory-mapped file: shmget() failed'

Message boards : Questions and problems : ACTIVE_TASK::start(): can't create memory-mapped file: shmget() failed
Message board moderation

To post messages, you must log in.

AuthorMessage
mike8347569357

Send message
Joined: 14 Jun 11
Posts: 30
United Kingdom
Message 58119 - Posted: 25 Nov 2014, 11:50:55 UTC

When we start boinc-client, the tasks are failing with ...

ACTIVE_TASK::start(): can't create memory-mapped file: shmget() failed

We cannot seem to get boinc to talk to a project to get more tasks, and it doesn't want to run the tasks it's got.

The log looks like this ...


    25-Nov-2014 11:10:22 [---] Starting BOINC client version 7.2.42 for x86_64-pc-linux-gnu
    25-Nov-2014 11:10:22 [---] log flags: file_xfer, sched_ops, task, app_msg_receive, app_msg_send, checkpoint_debug
    25-Nov-2014 11:10:22 [---] log flags: task_debug
    25-Nov-2014 11:10:22 [---] Libraries: libcurl/7.32.0 NSS/3.17.2 Basic ECC zlib/1.2.8 libidn/1.28 libssh2/1.4.3
    25-Nov-2014 11:10:22 [---] Data directory: /var/lib/boinc
    25-Nov-2014 11:10:22 [---] CAL: ATI GPU 0: ATI Radeon HD 5700/6750/6770 series (Juniper) (CAL version 1.4.1848, 1024MB, 960MB available, 2016 GFLOPS peak)
    25-Nov-2014 11:10:22 [---] OpenCL: AMD/ATI GPU 0: ATI Radeon HD 5700/6750/6770 series (Juniper) (driver version 1573.4, device version OpenCL 1.2 AMD-APP (1573.4), 1024MB, 960MB available, 2016 GFLOPS peak)
    25-Nov-2014 11:10:22 [---] OpenCL CPU: AMD Athlon(tm) II X4 635 Processor (OpenCL driver vendor: Advanced Micro Devices, Inc., driver version 1573.4 (sse2), device version OpenCL 1.2 AMD-APP (1573.4))
    25-Nov-2014 11:10:22 [---] Host name: pluto
    25-Nov-2014 11:10:22 [---] Processor: 4 AuthenticAMD AMD Athlon(tm) II X4 635 Processor [Family 16 Model 5 Stepping 2]
    25-Nov-2014 11:10:22 [---] Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl nonstop_tsc extd_apicid pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt hw_pstate npt lbrv svm_lock nrip_save
    25-Nov-2014 11:10:22 [---] OS: Linux: 3.17.3-200.fc20.x86_64
    25-Nov-2014 11:10:22 [---] Memory: 3.86 GB physical, 9.77 GB virtual
    25-Nov-2014 11:10:22 [---] Disk: 448.23 GB total, 393.26 GB free
    25-Nov-2014 11:10:22 [---] Local time is UTC +0 hours
    25-Nov-2014 11:10:22 [SETI@home] URL http://setiathome.berkeley.edu/; Computer ID ****; resource share 100
    25-Nov-2014 11:10:22 [climateprediction.net] URL http://climateprediction.net/; Computer ID ****; resource share 100
    25-Nov-2014 11:10:22 [Einstein@Home] URL http://einstein.phys.uwm.edu/; Computer ID ****; resource share 100
    25-Nov-2014 11:10:22 [SETI@home] General prefs: from SETI@home (last modified 07-Nov-2012 15:55:30)
    25-Nov-2014 11:10:22 [SETI@home] Host location: none
    25-Nov-2014 11:10:22 [SETI@home] General prefs: using your defaults
    25-Nov-2014 11:10:22 [---] Reading preferences override file
    25-Nov-2014 11:10:22 [---] Preferences:
    25-Nov-2014 11:10:22 [---] max memory usage when active: 1976.33MB
    25-Nov-2014 11:10:22 [---] max memory usage when idle: 3557.40MB
    25-Nov-2014 11:10:22 [---] max disk usage: 394.83GB
    25-Nov-2014 11:10:22 [---] max CPUs used: 2
    25-Nov-2014 11:10:22 [---] don't use GPU while active
    25-Nov-2014 11:10:22 [---] (to change preferences, visit a project web site or select Preferences in the Manager)
    25-Nov-2014 11:10:22 [---] Not using a proxy
    25-Nov-2014 11:10:23 Initialization completed
    25-Nov-2014 11:10:23 [Einstein@Home] ACTIVE_TASK::start(): can't create memory-mapped file: shmget() failed
    [mike@pluto ~]# sudo systemctl stop boinc-client



Some history. We had a HDD crash. I managed to rescue most data from backups, but the O/S stuff was never backed up - just user data. The idea was we'd simply re-install the software from the latest distribution.

So with a completely clean disk, we installed RedHat Fedora 20. On top of that we rolled in our backups of /home & /var/lib/boinc.

But as you can see the client isn't running properly.

df is showing 88k used from 4G for /dev/shm so there's plenty of room

It's not an selinux problem.

Anyone got any ideas ?

ID: 58119 · Report as offensive
ProfileGary Charpentier
Avatar

Send message
Joined: 23 Feb 08
Posts: 2524
United States
Message 58120 - Posted: 25 Nov 2014, 14:41:10 UTC - in response to Message 58119.  

df is showing 88k used from 4G for /dev/shm so there's plenty of room

What's the limit per process?
ID: 58120 · Report as offensive
mike8347569357

Send message
Joined: 14 Jun 11
Posts: 30
United Kingdom
Message 58121 - Posted: 25 Nov 2014, 15:34:08 UTC - in response to Message 58120.  

Thanks for the reply, but how do I find that out ? I've got this...


    [mike@pluto ~]$ cat /proc/sys/kernel/shmmax
    18446744073692774399
    [mike@pluto ~]$ cat /proc/sys/kernel/shmmni
    4096
    [mike@pluto ~]$ cat /proc/sys/kernel/shmall
    18446744073692774399
    [mike@pluto ~]$ ulimit -a
    core file size (blocks, -c) 0
    data seg size (kbytes, -d) unlimited
    scheduling priority (-e) 0
    file size (blocks, -f) unlimited
    pending signals (-i) 15729
    max locked memory (kbytes, -l) 64
    max memory size (kbytes, -m) unlimited
    open files (-n) 1024
    pipe size (512 bytes, -p) 8
    POSIX message queues (bytes, -q) 819200
    real-time priority (-r) 0
    stack size (kbytes, -s) 8192
    cpu time (seconds, -t) unlimited
    max user processes (-u) 1024
    virtual memory (kbytes, -v) unlimited
    file locks (-x) unlimited
    [mike@pluto ~]$

ID: 58121 · Report as offensive
mike8347569357

Send message
Joined: 14 Jun 11
Posts: 30
United Kingdom
Message 58122 - Posted: 25 Nov 2014, 16:31:13 UTC - in response to Message 58121.  

OK. Solved.

Owner permissions were not set correctly on /var/lib/boinc.


    [root@pluto mylib]# ls -al /var/lib
    total 204
    drwxr-xr-x. 50 root root 4096 Nov 25 15:19 .
    drwxr-xr-x. 19 root root 4096 Nov 25 15:19 ..
    drwxrwxr-x. 5 unbound boinc 4096 Nov 25 16:23 boinc
    drwxrwxr-x. 3 boinc boinc 4096 Nov 22 16:26 boinc_orig


Did a 'chown -R boinc:boinc /var/lib/boinc' and it's all OK.

ID: 58122 · Report as offensive

Message boards : Questions and problems : ACTIVE_TASK::start(): can't create memory-mapped file: shmget() failed

Copyright © 2025 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.