{"action":"created","issue":{"url":"https://api.github.com/repos/redox-os/redox/issues/295","labels_url":"https://api.github.com/repos/redox-os/redox/issues/295/labels{/name}","comments_url":"https://api.github.com/repos/redox-os/redox/issues/295/comments","events_url":"https://api.github.com/repos/redox-os/redox/issues/295/events","html_url":"https://github.com/redox-os/redox/issues/295","id":117829765,"number":295,"title":"Some issues with using redox","user":{"login":"mahkoh","id":1882250,"avatar_url":"https://avatars.githubusercontent.com/u/1882250?v=3","gravatar_id":"","url":"https://api.github.com/users/mahkoh","html_url":"https://github.com/mahkoh","followers_url":"https://api.github.com/users/mahkoh/followers","following_url":"https://api.github.com/users/mahkoh/following{/other_user}","gists_url":"https://api.github.com/users/mahkoh/gists{/gist_id}","starred_url":"https://api.github.com/users/mahkoh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mahkoh/subscriptions","organizations_url":"https://api.github.com/users/mahkoh/orgs","repos_url":"https://api.github.com/users/mahkoh/repos","events_url":"https://api.github.com/users/mahkoh/events{/privacy}","received_events_url":"https://api.github.com/users/mahkoh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-19T14:52:15Z","updated_at":"2015-11-19T14:55:30Z","closed_at":null,"body":"I tried to use redox a bit and encountered the following issues.\r\n\r\n#### Variables are hard-coded in the Makefile\r\n\r\nI cannot use my normal rustc to compile redox so I installed a new nightly into a custom prefix. The makefile can then be made use the new rustc by replacing\r\n\r\n```\r\nRUSTC=RUST_BACKTRACE=1 rustc\r\n```\r\n\r\nwith\r\n\r\n```\r\nRUSTC=RUST_BACKTRACE=1 redox-rustc\r\n```\r\n\r\nBut since the Makefile is tracked by git this is a bit problematic. Instead, all of those variables should be read from a `config.mk` which is not tracked by git.\r\n\r\n#### Redox is quite sluggish and uses 100% cpu\r\n\r\nI tried it in both virtualbox and qemu (without kvm, which my system does not support). In virtualbox it is completely unusable. qemu is better but still slow. Either way it uses 100% cpu constantly. This looks like a bug.\r\n\r\n#### Redox cannot be used without graphical output\r\n\r\nI don't want to use the graphical output for various reasons:\r\n\r\n* It's slow\r\n* It doesn't understand my keyboard layout\r\n* Fixed size windows don't work in my twm\r\n\r\nIt's almost possible to use redox without graphics but not quite. At the start it asks you to select an output size and waits for an answer. If you start it without graphics output, you cannot answer (maybe you can but I don't know qemu enough to do it). I fixed this with the following hack in vesa.asm:\r\n\r\n```asm\r\n\t; int 0x16\r\n\tmov ax, 'y'\r\n\tpop esi\r\n\tcmp al, 'y'\r\n\tjne .searchmodes\r\n```\r\n\r\nWith this I can use redox in qemu with the `-nographic` option. This makes redox much faster (but doesn't fix the 100% cpu issue.) Maybe an option could be added that completely disables the graphics part of the kernel?"},"comment":{"url":"https://api.github.com/repos/redox-os/redox/issues/comments/158080483","html_url":"https://github.com/redox-os/redox/issues/295#issuecomment-158080483","issue_url":"https://api.github.com/repos/redox-os/redox/issues/295","id":158080483,"user":{"login":"Ticki","id":13349091,"avatar_url":"https://avatars.githubusercontent.com/u/13349091?v=3","gravatar_id":"","url":"https://api.github.com/users/Ticki","html_url":"https://github.com/Ticki","followers_url":"https://api.github.com/users/Ticki/followers","following_url":"https://api.github.com/users/Ticki/following{/other_user}","gists_url":"https://api.github.com/users/Ticki/gists{/gist_id}","starred_url":"https://api.github.com/users/Ticki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ticki/subscriptions","organizations_url":"https://api.github.com/users/Ticki/orgs","repos_url":"https://api.github.com/users/Ticki/repos","events_url":"https://api.github.com/users/Ticki/events{/privacy}","received_events_url":"https://api.github.com/users/Ticki/received_events","type":"User","site_admin":false},"created_at":"2015-11-19T14:55:30Z","updated_at":"2015-11-19T14:55:30Z","body":"All these are valid points, and performance definitely needs to be improved. Currently, I'm writing a new memory manager, because many of the performance issues are a result of inefficient memory management.\r\n\r\nOrbital is no longer a part of the kernel. As such, the kernel is relatively small now.\r\n\r\nAlso, note that Redox is in its early state, and will improve over time."}}