-
-
Notifications
You must be signed in to change notification settings - Fork 11.1k
rockchip: disable kernel preemption #17575
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me. Tested on my NanoPi R4S production router. I can confirm that the system is booting. It is stable since I updated (about an hour ago). I only have a 250 Mbit line which the R4S was able to fully utilize before, so I probably won't feel the performance increase. Nevertheless I ran a speed test and the device still maxes out my line. So all good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: openwrt#17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: openwrt#17575 Signed-off-by: Robert Marko <robimarko@gmail.com>
561971e to
1c178f3
Compare
|
Thanks! Rebased on top of main and merged! |
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: #17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: #17575 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 1c178f3)
nft flush ruleset → |
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: openwrt#17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: openwrt#17575 Signed-off-by: Robert Marko <robimarko@gmail.com>
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: openwrt#17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: openwrt#17575 Signed-off-by: Robert Marko <robimarko@gmail.com>
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: openwrt#17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: openwrt#17575 Signed-off-by: Robert Marko <robimarko@gmail.com>
|
PREEMPT provides a balance between performance and throughput, and it's optimal for routers. While PREEMPT_NONE is only provides the throughput, but gives worse performance. Don't copypaste from uncertain maintainers and revert this commit. |
|
kien-truong You have not provided any convincing arguments for disable kernel preemption. Thread #17454 based on VPN test only, and does not provide a full assessment of the potential loss productivity of all other process. Your have only argument is that other routers have disable kernel preemption, but all devices on OpenWrt it's more than just a router and can be used to execute multiple services, from which you want to take away resources in favor of bandwidth. This is not right. Especially, I tested the firmware with it disabled kernel preemption and did not get any positive results. The problem with poor network performance on the NanoPi devices is that OpenWrt only can use open source Realtek network drivers, which have bad implementation. This has been discussed for many years. |
show me some benchmark that relate what you reply. |
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: openwrt#17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: openwrt#17575 Signed-off-by: Robert Marko <robimarko@gmail.com>
This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard). Fix: openwrt#17454 Signed-off-by: Kien Truong <duckientruong@gmail.com> Link: openwrt#17575 Signed-off-by: Robert Marko <robimarko@gmail.com>


This setting is more suitable for device running OpenWRT. Most OpenWRT targets are already default to this configuration, and it has shown better performance in VPN (wireguard).
Fix: #17454