[GH-ISSUE #2034] 使用frp0.33版本, 在设置use_compression = true后 ,限速不准 #1616

Closed
opened 2026-05-05 13:01:57 -06:00 by gitea-mirror · 6 comments
Owner

Originally created by @ivanhxq on GitHub (Oct 21, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2034

使用frp0.33版本, 在设置use_compression = true后 ,限速不准,工作在sctp模式, 配置为1280KB,即10Mbps,但使用iperf跑流出来的速度不是10Mbps,远高过10Mbps;在设置use_compression = false就在预期限速范围内

Originally created by @ivanhxq on GitHub (Oct 21, 2020). Original GitHub issue: https://github.com/fatedier/frp/issues/2034 使用frp0.33版本, 在设置use_compression = true后 ,限速不准,工作在sctp模式, 配置为1280KB,即10Mbps,但使用iperf跑流出来的速度不是10Mbps,远高过10Mbps;在设置use_compression = false就在预期限速范围内
gitea-mirror 2026-05-05 13:01:57 -06:00
Author
Owner

@Becods commented on GitHub (Oct 21, 2020):

use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知

<!-- gh-comment-id:713307090 --> @Becods commented on GitHub (Oct 21, 2020): use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知
Author
Owner

@ivanhxq commented on GitHub (Oct 23, 2020):

use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知
能在发送端压缩前或者在接收端解压后限速吗?

<!-- gh-comment-id:714932933 --> @ivanhxq commented on GitHub (Oct 23, 2020): > use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知 能在发送端压缩前或者在接收端解压后限速吗?
Author
Owner

@Becods commented on GitHub (Oct 23, 2020):

use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知
能在发送端压缩前或者在接收端解压后限速吗?

请问你的需求是?
个人认为这样没有必要

<!-- gh-comment-id:715236298 --> @Becods commented on GitHub (Oct 23, 2020): > > use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知 > > 能在发送端压缩前或者在接收端解压后限速吗? 请问你的需求是? 个人认为这样没有必要
Author
Owner

@ivanhxq commented on GitHub (Oct 23, 2020):

use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知
能在发送端压缩前或者在接收端解压后限速吗?

请问你的需求是?
个人认为这样没有必要
我这边应用有点特殊:流量速度过大导致CPU使用过高,从而导致流量上下波动很多,很不稳定,所以想进行限速,从而把CPU使用率降下来。

<!-- gh-comment-id:715238989 --> @ivanhxq commented on GitHub (Oct 23, 2020): > > > use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知 > > > 能在发送端压缩前或者在接收端解压后限速吗? > > 请问你的需求是? > 个人认为这样没有必要 我这边应用有点特殊:流量速度过大导致CPU使用过高,从而导致流量上下波动很多,很不稳定,所以想进行限速,从而把CPU使用率降下来。
Author
Owner

@Becods commented on GitHub (Oct 23, 2020):

use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知
能在发送端压缩前或者在接收端解压后限速吗?

请问你的需求是?
个人认为这样没有必要
我这边应用有点特殊:流量速度过大导致CPU使用过高,从而导致流量上下波动很多,很不稳定,所以想进行限速,从而把CPU使用率降下来。

应该是性能很低的CPU才会有这种顾忌吧
建议还是将压缩关闭
压缩解压过程中需要占用CPU
压缩占用的量会比大流量占用高是正常的

<!-- gh-comment-id:715633317 --> @Becods commented on GitHub (Oct 23, 2020): > > > > use_compression会压缩流量,stcp仅限速压缩后的流量,实际解压后流量速度会大于限速,请悉知 > > > > 能在发送端压缩前或者在接收端解压后限速吗? > > > > > > 请问你的需求是? > > 个人认为这样没有必要 > > 我这边应用有点特殊:流量速度过大导致CPU使用过高,从而导致流量上下波动很多,很不稳定,所以想进行限速,从而把CPU使用率降下来。 应该是性能很低的CPU才会有这种顾忌吧 建议还是将压缩关闭 压缩解压过程中需要占用CPU 压缩占用的量会比大流量占用高是正常的
Author
Owner

@github-actions[bot] commented on GitHub (Dec 8, 2020):

Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.

<!-- gh-comment-id:740289322 --> @github-actions[bot] commented on GitHub (Dec 8, 2020): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1616
No description provided.