{"action":"created","issue":{"url":"https://api.github.com/repos/imq/linuximq/issues/48","repository_url":"https://api.github.com/repos/imq/linuximq","labels_url":"https://api.github.com/repos/imq/linuximq/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/imq/linuximq/issues/48/comments","events_url":"https://api.github.com/repos/imq/linuximq/issues/48/events","html_url":"https://github.com/imq/linuximq/issues/48","id":188109182,"number":48,"title":"Possible memory leak imq patch for kernel 4.8.4","user":{"login":"martinmakr","id":23346127,"avatar_url":"https://avatars.githubusercontent.com/u/23346127?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmakr","html_url":"https://github.com/martinmakr","followers_url":"https://api.github.com/users/martinmakr/followers","following_url":"https://api.github.com/users/martinmakr/following{/other_user}","gists_url":"https://api.github.com/users/martinmakr/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmakr/subscriptions","organizations_url":"https://api.github.com/users/martinmakr/orgs","repos_url":"https://api.github.com/users/martinmakr/repos","events_url":"https://api.github.com/users/martinmakr/events{/privacy}","received_events_url":"https://api.github.com/users/martinmakr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":28,"created_at":"2016-11-08T21:32:47Z","updated_at":"2016-11-17T16:59:11Z","closed_at":null,"body":"Hello, in history i used kernel 4.2.3 with imq patch (only) for 1 year and it work fine. Before 2 days i installed on same router (debian based) kernel 4.8.4 patched with imq (patch founded in closed issue https://github.com/imq/linuximq/pull/46). After one day router suddenly rebooted (kernel 4.8.4-imq, 2GB ram). The traffic is about 150Mbps. On my graph i see that it use all memory (about 100MB/hour). Router have 2GB of ram. After this first reboot i try diagnose what happen. Router using more and more memory. But no process use the memory! \r\n\r\n```\r\nrouter6:~# ps aux | awk '{sum+=$6} END {print sum / 1024}'\r\n85.8398\r\nrouter6:~# free -m\r\n             total       used       free     shared    buffers     cached\r\nMem:          1985       1939         46          0          0         41\r\n-/+ buffers/cache:       1897         88\r\nSwap:            0          0          0\r\n```\r\n\r\nI try many thing to analyse what happen, i cannot find what use the memory. Trying restarting services and still same. Memory is exhausting. When i stop imq with \"ifconfig imq0 down\", exhausting of memory stop!  The current state is that router have 2GB, processes used 85MB and 46M is free, so the kernel use 1917M of memory (2048-85-46) \r\n\r\nFor all information, i have same kernel on other 3 router (with other hardware), and there is no problem with memory leak or using by imq. Used memory on other router with same kernel (4.8.4-imq) is about 400MB in 2GB RAM. I know, it sound strange. If you want, i can make some other test or append some diagnostic output. I could not experiment too much because router is in network with customers."},"comment":{"url":"https://api.github.com/repos/imq/linuximq/issues/comments/261303818","html_url":"https://github.com/imq/linuximq/issues/48#issuecomment-261303818","issue_url":"https://api.github.com/repos/imq/linuximq/issues/48","id":261303818,"user":{"login":"martinmakr","id":23346127,"avatar_url":"https://avatars.githubusercontent.com/u/23346127?v=3","gravatar_id":"","url":"https://api.github.com/users/martinmakr","html_url":"https://github.com/martinmakr","followers_url":"https://api.github.com/users/martinmakr/followers","following_url":"https://api.github.com/users/martinmakr/following{/other_user}","gists_url":"https://api.github.com/users/martinmakr/gists{/gist_id}","starred_url":"https://api.github.com/users/martinmakr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinmakr/subscriptions","organizations_url":"https://api.github.com/users/martinmakr/orgs","repos_url":"https://api.github.com/users/martinmakr/repos","events_url":"https://api.github.com/users/martinmakr/events{/privacy}","received_events_url":"https://api.github.com/users/martinmakr/received_events","type":"User","site_admin":false},"created_at":"2016-11-17T16:59:11Z","updated_at":"2016-11-17T16:59:11Z","body":"Thank you k0ste. Excellent work! I compile 4.8.8-imq from #49 and its running on one router now (router10). I have one diagnostic output from another router, with \"old\" 4.8.4 from #46 with memory leaking problem. And it has problem when reboot, because no reboot happen! On console is still repeating this line, maybe this could be usefull. For reboot it is better to wait to kernel.panic and reboot or use sysrq. The output is - still repeating:\r\n`unregister_netdevice: waiting for eth0.204 to become free. Usage count = 948.`\r\n\r\nAnd information about 4.8.7 - with #46 and with patch line from stans77 is working correctly on router6. No huge memleak, no other problem. After 2 days with avg 150Mbps traffic, memory used 114MB, processes use 82MB. "}}
{"actor":{"display_login":"martinmakr"}}