{"id":2582,"date":"2021-03-20T16:35:45","date_gmt":"2021-03-20T16:35:45","guid":{"rendered":"https:\/\/hauweele.net\/~gawen\/blog\/?p=2582"},"modified":"2021-03-20T16:35:45","modified_gmt":"2021-03-20T16:35:45","slug":"ioctl-mem-alloc-failed","status":"publish","type":"post","link":"https:\/\/hauweele.net\/~gawen\/blog\/?p=2582","title":{"rendered":"ioctl mem-alloc FAILED"},"content":{"rendered":"<p>If while trying to play a video on the RaspberryPi, in particular with Kodi, the video doesn&#8217;t play and you get this error on the terminal:<\/p>\n<pre>\r\n[CGPUMEM]: ioctl mem-alloc FAILED [-1]\r\n<\/pre>\n<p>Then hopefully this post will help you.<\/p>\n<p>You may have read elsewhere that you should increase your GPU memory in <code>\/boot\/config.txt<\/code>, then add <code>gpu_mem=256<\/code>.<\/p>\n<p>But that&#8217;s not enough. You also need to increase the limit of the contiguous memory allocator. In <code>\/boot\/cmdline.txt<\/code> add the option <code>cma=256M<\/code>. Then reboot and you should be fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If while trying to play a video on the RaspberryPi, in particular with Kodi, the video doesn&#8217;t play and you get this error on the terminal: [CGPUMEM]: ioctl mem-alloc FAILED [-1] Then hopefully this post will help you. You may &hellip; <a href=\"https:\/\/hauweele.net\/~gawen\/blog\/?p=2582\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[1104,1106,1105,1103,159,591,595,162,211],"class_list":["post-2582","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-failed","tag-gpu","tag-kodi","tag-mem-alloc","tag-raspberry","tag-raspberrypi","tag-raspbian","tag-rpi","tag-video"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2582"}],"version-history":[{"count":0,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2582\/revisions"}],"wp:attachment":[{"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hauweele.net\/~gawen\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}