{"action":"created","issue":{"url":"https://api.github.com/repos/petrockblog/RetroPie-Setup/issues/687","labels_url":"https://api.github.com/repos/petrockblog/RetroPie-Setup/issues/687/labels{/name}","comments_url":"https://api.github.com/repos/petrockblog/RetroPie-Setup/issues/687/comments","events_url":"https://api.github.com/repos/petrockblog/RetroPie-Setup/issues/687/events","html_url":"https://github.com/petrockblog/RetroPie-Setup/issues/687","id":58875393,"number":687,"title":"setting scaling_governor on Raspberry Pi 2 (runcommand.sh)","user":{"login":"alberthorta","id":423098,"avatar_url":"https://avatars.githubusercontent.com/u/423098?v=3","gravatar_id":"","url":"https://api.github.com/users/alberthorta","html_url":"https://github.com/alberthorta","followers_url":"https://api.github.com/users/alberthorta/followers","following_url":"https://api.github.com/users/alberthorta/following{/other_user}","gists_url":"https://api.github.com/users/alberthorta/gists{/gist_id}","starred_url":"https://api.github.com/users/alberthorta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alberthorta/subscriptions","organizations_url":"https://api.github.com/users/alberthorta/orgs","repos_url":"https://api.github.com/users/alberthorta/repos","events_url":"https://api.github.com/users/alberthorta/events{/privacy}","received_events_url":"https://api.github.com/users/alberthorta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-02-25T09:44:10Z","updated_at":"2015-02-25T21:03:07Z","closed_at":null,"body":"Before running the emulator runcommand.sh is setting the cpu scaling_governor to \"performance\" to get the maximum performance of the CPU core, but the new Raspberry Pi 2 have 4 cores, and we are just setting the \"performace\" on the core 0.\r\n\r\nI don't know if this can actually impact on the performance of the emulators, but seems reasonable.\r\n\r\nI just copied and replaced the line : \r\n\r\necho \"performance\" | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor >/dev/null\r\n\r\ninto :\r\n\r\necho \"performance\" | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor >/dev/null\r\necho \"performance\" | sudo tee /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor >/dev/null\r\necho \"performance\" | sudo tee /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor >/dev/null\r\necho \"performance\" | sudo tee /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor >/dev/null\r\n\r\nAnd the line :\r\n\r\necho \"ondemand\" | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor >/dev/null\r\n\r\ninto : \r\n\r\necho \"ondemand\" | sudo tee /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor >/dev/null\r\necho \"ondemand\" | sudo tee /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor >/dev/null\r\necho \"ondemand\" | sudo tee /sys/devices/system/cpu/cpu2/cpufreq/scaling_governor >/dev/null\r\necho \"ondemand\" | sudo tee /sys/devices/system/cpu/cpu3/cpufreq/scaling_governor >/dev/null\r\n\r\nBut, remember, this just make sense on Raspberry 2.\r\n\r\nI still need to make some tests in order to see if this is helping at all with n64 emulator, that's the only emulator where I can feel that the speed is still not enough, even with Raspberry PI 2\r\n\r\n--\r\nAlbert"},"comment":{"url":"https://api.github.com/repos/petrockblog/RetroPie-Setup/issues/comments/76056955","html_url":"https://github.com/petrockblog/RetroPie-Setup/issues/687#issuecomment-76056955","issue_url":"https://api.github.com/repos/petrockblog/RetroPie-Setup/issues/687","id":76056955,"user":{"login":"joolswills","id":5365574,"avatar_url":"https://avatars.githubusercontent.com/u/5365574?v=3","gravatar_id":"","url":"https://api.github.com/users/joolswills","html_url":"https://github.com/joolswills","followers_url":"https://api.github.com/users/joolswills/followers","following_url":"https://api.github.com/users/joolswills/following{/other_user}","gists_url":"https://api.github.com/users/joolswills/gists{/gist_id}","starred_url":"https://api.github.com/users/joolswills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joolswills/subscriptions","organizations_url":"https://api.github.com/users/joolswills/orgs","repos_url":"https://api.github.com/users/joolswills/repos","events_url":"https://api.github.com/users/joolswills/events{/privacy}","received_events_url":"https://api.github.com/users/joolswills/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T21:03:07Z","updated_at":"2015-02-25T21:03:07Z","body":"thanks. certainly we should change all cores, but I wonder if we should do this by default anyway - it could cause the temperature to be higher, and certainly on the pi2, stuff seems to run fine in ondemand mode.\r\n\r\nWill consider disabling this by default, but adding it as an option (and correcting it for the pi2).\r\n\r\nthanks."}}