Page MenuHomeFreeBSD

cc (Cheng Cui)
Research

Projects

User Details

User Since
Nov 23 2015, 12:29 AM (392 w, 4 d)

Recent Activity

Yesterday

cc closed D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..

This patch is submitted in a3aa6f652904

Thu, Jun 1, 3:59 PM
cc committed rGa3aa6f652904: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt. (authored by cc).
cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt.
Thu, Jun 1, 3:56 PM

Tue, May 30

cc committed rG7a52b570e758: siftr: bring back the siftr_pkts_per_log feature (authored by cc).
siftr: bring back the siftr_pkts_per_log feature
Tue, May 30, 4:24 PM
cc closed D40336: siftr: bring back the siftr_pkts_per_log feature.
Tue, May 30, 4:24 PM
cc requested review of D40336: siftr: bring back the siftr_pkts_per_log feature.
Tue, May 30, 3:05 PM
cc added inline comments to D40320: siftr: fix a build error for powerpc and arm platforms.
Tue, May 30, 10:39 AM
cc closed D40323: siftr: convert this tval.tv_sec to type intmax_t to print across platforms.
Tue, May 30, 10:28 AM
cc committed rGb71f278465ed: siftr: convert this tval.tv_sec to type intmax_t to print across platforms (authored by cc).
siftr: convert this tval.tv_sec to type intmax_t to print across platforms
Tue, May 30, 10:28 AM
cc added a comment to D40320: siftr: fix a build error for powerpc and arm platforms.

type converting fix is in https://reviews.freebsd.org/D40323

Tue, May 30, 12:38 AM
cc requested review of D40323: siftr: convert this tval.tv_sec to type intmax_t to print across platforms.
Tue, May 30, 12:36 AM
cc added inline comments to D40320: siftr: fix a build error for powerpc and arm platforms.
Tue, May 30, 12:14 AM

Mon, May 29

cc committed rG78914cd641cc: siftr: sync-up man page with recent code changes, and cleanup code (authored by cc).
siftr: sync-up man page with recent code changes, and cleanup code
Mon, May 29, 8:17 PM
cc closed D40322: siftr: sync-up man page with recent code changes, and cleanup code.
Mon, May 29, 8:17 PM
cc committed rGd29a9a615c53: siftr: fix a build error for powerpc and arm platforms (authored by cc).
siftr: fix a build error for powerpc and arm platforms
Mon, May 29, 8:12 PM
cc closed D40320: siftr: fix a build error for powerpc and arm platforms.
Mon, May 29, 8:11 PM
cc requested review of D40322: siftr: sync-up man page with recent code changes, and cleanup code.
Mon, May 29, 6:54 PM
cc updated the summary of D40320: siftr: fix a build error for powerpc and arm platforms.
Mon, May 29, 5:46 PM
cc updated the summary of D40320: siftr: fix a build error for powerpc and arm platforms.
Mon, May 29, 5:46 PM
cc updated the summary of D40320: siftr: fix a build error for powerpc and arm platforms.
Mon, May 29, 5:39 PM
cc requested review of D40320: siftr: fix a build error for powerpc and arm platforms.
Mon, May 29, 5:36 PM
cc committed rGaa61cff4249c: siftr: three changes that improve performance (authored by cc).
siftr: three changes that improve performance
Mon, May 29, 1:13 PM
cc closed D40302: siftr: three changes that improve performance.
Mon, May 29, 1:13 PM
cc added a comment to D40302: siftr: three changes that improve performance.

Thank you Michael for this review!

Mon, May 29, 1:09 PM
cc updated the test plan for D40302: siftr: three changes that improve performance.
Mon, May 29, 11:14 AM
cc retitled D40302: siftr: three changes that improve performance from siftr: two changes that improve performance to siftr: three changes that improve performance.
Mon, May 29, 10:33 AM
cc updated the diff for D40302: siftr: three changes that improve performance.

update based on comments

Mon, May 29, 10:32 AM

Sun, May 28

cc updated the test plan for D40302: siftr: three changes that improve performance.
Sun, May 28, 11:56 PM

Sat, May 27

cc accepted D40304: Refactor tcp_get_srtt().
Sat, May 27, 9:33 PM
cc updated the test plan for D40302: siftr: three changes that improve performance.
Sat, May 27, 1:12 PM
cc requested review of D40302: siftr: three changes that improve performance.
Sat, May 27, 1:06 PM

Fri, May 26

cc added a comment to D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..

You might want to wait also for Richards' approval, since he is much more familiar with the code than I am.

Fri, May 26, 5:52 PM
cc updated the summary of D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..
Fri, May 26, 5:51 PM
cc added inline comments to D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..
Fri, May 26, 5:50 PM
cc updated the diff for D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..

correct the lower bound for min_rtt_usecs and correct some space and comments

Fri, May 26, 5:44 PM
cc closed D40267: tcp: fix a bug where unshifting should be put last in tcp_get_srtt().
Fri, May 26, 10:36 AM
cc committed rGf5abdb03119a: tcp: fix a bug where unshifting should be put last in tcp_get_srtt() (authored by cc).
tcp: fix a bug where unshifting should be put last in tcp_get_srtt()
Fri, May 26, 10:36 AM

Thu, May 25

cc updated the diff for D40267: tcp: fix a bug where unshifting should be put last in tcp_get_srtt().

Add comment above this fix to explain why it can improve precision.

Thu, May 25, 10:27 PM
cc requested review of D40267: tcp: fix a bug where unshifting should be put last in tcp_get_srtt().
Thu, May 25, 5:19 PM

Sun, May 21

cc added inline comments to D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..
Sun, May 21, 12:21 PM

Sat, May 20

cc updated the summary of D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..
Sat, May 20, 3:42 PM
cc updated the summary of D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..
Sat, May 20, 3:42 PM
cc requested review of D40185: cc_cubic: Use units of micro seconds (usecs) instead of ticks in rtt..
Sat, May 20, 3:22 PM

Fri, May 19

cc abandoned D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

If keep the flowlist of the footnote summary, I have to rework the code to keep ip/port tuples when use flowid as the key.

Fri, May 19, 8:50 PM

Thu, May 18

cc committed rGe5738ee04bf0: Under RSS, assign a TCP flow's inp_flowid anyway. (authored by cc).
Under RSS, assign a TCP flow's inp_flowid anyway.
Thu, May 18, 7:16 PM
cc closed D40061: Under RSS, assign a TCP flow's inp_flowid anyway..
Thu, May 18, 7:16 PM
cc updated the diff for D40061: Under RSS, assign a TCP flow's inp_flowid anyway..

further cleanup

Thu, May 18, 6:26 PM
cc added inline comments to D40061: Under RSS, assign a TCP flow's inp_flowid anyway..
Thu, May 18, 6:18 PM

Fri, May 12

cc updated the test plan for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.
Fri, May 12, 12:13 PM
cc updated the diff for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

clean up function siftr_get_flowid()

Fri, May 12, 12:07 PM

Thu, May 11

cc updated the test plan for D40061: Under RSS, assign a TCP flow's inp_flowid anyway..
Thu, May 11, 6:09 PM
cc updated the diff for D40061: Under RSS, assign a TCP flow's inp_flowid anyway..

cleanup change and fix a bug in this change

Thu, May 11, 6:08 PM
cc added inline comments to D40061: Under RSS, assign a TCP flow's inp_flowid anyway..
Thu, May 11, 4:32 PM
cc updated the test plan for D40061: Under RSS, assign a TCP flow's inp_flowid anyway..
Thu, May 11, 1:15 PM
cc requested review of D40061: Under RSS, assign a TCP flow's inp_flowid anyway..
Thu, May 11, 1:13 PM

Mon, May 8

cc accepted D39999: em(4): update sysctl list, mention iflib(4).

Looks good to me. Thanks for taking care of this. :)

Mon, May 8, 3:17 PM
cc updated the diff for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

update inp->inp_flowid usage in compare

Mon, May 8, 12:04 AM

Sun, May 7

cc added inline comments to D39848: siftr: use inp_flowid or a new packet hash for a flow identification.
Sun, May 7, 11:02 PM
cc added a comment to D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

Changing the algorithm is one thing I agree with. But why change the output in the summary from IP addresses / port numbers to flow IDs? For me the IP addresses and port numbers are easier to read and more helpful.

Sun, May 7, 11:00 PM

Apr 28 2023

cc updated the test plan for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.
Apr 28 2023, 1:32 PM
cc updated the diff for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

correct siftr_get_flowid() in SIFTR_IPV6 compile

Apr 28 2023, 1:30 PM
cc accepted D39860: tcp_rack: allow the module to be loaded without TCP_BLACKBOX.
Apr 28 2023, 11:21 AM

Apr 27 2023

cc updated the diff for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

update man page

Apr 27 2023, 1:22 PM
cc updated the diff for D39848: siftr: use inp_flowid or a new packet hash for a flow identification.

update man page too

Apr 27 2023, 1:09 PM
cc requested review of D39848: siftr: use inp_flowid or a new packet hash for a flow identification.
Apr 27 2023, 11:40 AM

Apr 26 2023

cc committed rG60167184abd5: siftr: remove barely used hash generation per record (authored by cc).
siftr: remove barely used hash generation per record
Apr 26 2023, 11:59 PM
cc closed D39835: siftr: remove barely used hash generation per record.
Apr 26 2023, 11:59 PM
cc added a comment to D39835: siftr: remove barely used hash generation per record.
In D39835#906901, @cc wrote:
In D39835#906795, @cc wrote:

What do we gain from removing this feature? My understanding is that if it is not enabled, it does not have a substantial CPU overhead. I have no idea who uses siftr and if they use this feature...

This feature is not used AFAIK. We have less carbon print (at least 10 chars of "0x00000000") per record after removing this feature.

OK, so I understand that it makes sense not to print it, if the feature is not used. But I have (in general) a hard time to tell, which features are used and which are not... So how do you know that you are not removing a feature considered important by some people?
An argument I see in favor of this change is that I'm not aware of any tool reading a .pcap file and computing the hashes for the packets.

Let's assume this is a dead feature, or the original authors do not need it any longer. Also, a hash value is hard to use for a packet identification. I will consider tcp.seq, tcp.ack, and tcp.len in the tcphdr for such identification. Besides, the inconsistency between IPv4 and IPv6 for this feature does not make sense.

Apr 26 2023, 9:51 PM
cc updated the test plan for D39835: siftr: remove barely used hash generation per record.
Apr 26 2023, 9:38 PM
cc added a comment to D39835: siftr: remove barely used hash generation per record.
In D39835#906795, @cc wrote:

What do we gain from removing this feature? My understanding is that if it is not enabled, it does not have a substantial CPU overhead. I have no idea who uses siftr and if they use this feature...

This feature is not used AFAIK. We have less carbon print (at least 10 chars of "0x00000000") per record after removing this feature.

OK, so I understand that it makes sense not to print it, if the feature is not used. But I have (in general) a hard time to tell, which features are used and which are not... So how do you know that you are not removing a feature considered important by some people?
An argument I see in favor of this change is that I'm not aware of any tool reading a .pcap file and computing the hashes for the packets.

Apr 26 2023, 9:12 PM
cc added a comment to D39835: siftr: remove barely used hash generation per record.

What do we gain from removing this feature? My understanding is that if it is not enabled, it does not have a substantial CPU overhead. I have no idea who uses siftr and if they use this feature...

Apr 26 2023, 6:34 PM
cc updated the diff for D39835: siftr: remove barely used hash generation per record.

Add date update in man page.

Apr 26 2023, 3:29 PM
cc requested review of D39835: siftr: remove barely used hash generation per record.
Apr 26 2023, 3:26 PM

Apr 25 2023

cc added a comment to D39698: tcp: move HPTS/LRO flags out of inpcb to tcpcb.
Apr 25 2023, 9:31 PM
cc committed rGd090464ecd4a: Change the unit of srtt and rto to usec, inspired by these in struct "tcp_info". (authored by cc).
Change the unit of srtt and rto to usec, inspired by these in struct "tcp_info".
Apr 25 2023, 9:27 PM
cc closed D39803: Change the unit of srtt and rto to usec, inspired by these in struct "tcp_info". Therefore, no need hz and tcp_rtt_scale in the headline of the log. Update the man page as well..
Apr 25 2023, 9:27 PM
cc added a comment to D39803: Change the unit of srtt and rto to usec, inspired by these in struct "tcp_info". Therefore, no need hz and tcp_rtt_scale in the headline of the log. Update the man page as well..

Isn't that another backwards incompatible change?

Apr 25 2023, 9:23 PM
cc requested review of D39803: Change the unit of srtt and rto to usec, inspired by these in struct "tcp_info". Therefore, no need hz and tcp_rtt_scale in the headline of the log. Update the man page as well..
Apr 25 2023, 4:04 PM

Apr 24 2023

cc closed D39776: Remove unused fields in siftr_stats. Thus, update the man page as well..
Apr 24 2023, 11:32 PM
cc committed rG1f782fcc0cf1: Remove unused fields in siftr_stats. Thus, update the man page as well. (authored by cc).
Remove unused fields in siftr_stats. Thus, update the man page as well.
Apr 24 2023, 11:32 PM
cc committed rG8aa2be695e0c: Correct the value of macro TF2_TCP_ACCOUNTING. (authored by cc).
Correct the value of macro TF2_TCP_ACCOUNTING.
Apr 24 2023, 11:29 PM
cc closed D39716: Correct the value of macro TF2_TCP_ACCOUNTING..
Apr 24 2023, 11:29 PM
cc updated the diff for D39776: Remove unused fields in siftr_stats. Thus, update the man page as well..

Update date in man page, and inflate siftr version.

Apr 24 2023, 6:18 PM
cc added inline comments to D39776: Remove unused fields in siftr_stats. Thus, update the man page as well..
Apr 24 2023, 4:32 PM
cc added inline comments to D39776: Remove unused fields in siftr_stats. Thus, update the man page as well..
Apr 24 2023, 1:23 PM
cc requested review of D39776: Remove unused fields in siftr_stats. Thus, update the man page as well..
Apr 24 2023, 11:48 AM

Apr 21 2023

cc accepted D39299: tcp: include RFC6675 IsLost() in pipe calculation.

Offline discussion includes packetdrill tests from Richard and my Emulab dumbbell testbed tests. I found it hard to attach my Emulab test result here. But this patch looks good to me.

Apr 21 2023, 4:53 PM
cc added a comment to D39716: Correct the value of macro TF2_TCP_ACCOUNTING..

I'm fine with this change. If you commit it quickly, I will respin values in D39698. Alternatively the value can remain as is, just add explicit comments that bits 0x1000, 0x2000, 0x4000, 0x8000 are unused and available.

Apr 21 2023, 10:55 AM

Apr 20 2023

cc added a comment to D39698: tcp: move HPTS/LRO flags out of inpcb to tcpcb.
In D39698#903847, @rrs wrote:

Why if 0x10000 is not used would it matter?

Apr 20 2023, 1:31 PM
cc added inline comments to D39698: tcp: move HPTS/LRO flags out of inpcb to tcpcb.
Apr 20 2023, 11:50 AM
cc requested review of D39716: Correct the value of macro TF2_TCP_ACCOUNTING..
Apr 20 2023, 11:48 AM
cc added inline comments to D39698: tcp: move HPTS/LRO flags out of inpcb to tcpcb.
Apr 20 2023, 10:55 AM
cc requested changes to D39698: tcp: move HPTS/LRO flags out of inpcb to tcpcb.
Apr 20 2023, 10:46 AM

Apr 19 2023

cc accepted D39436: trpt: fix logging.
Apr 19 2023, 7:50 PM

Apr 18 2023

cc added a comment to D39299: tcp: include RFC6675 IsLost() in pipe calculation.

tcp_compute_pipe is always controlled by mostly V_tcp_do_newsack in the output path and CC modules, and V_tcp_do_newcwv in the input path for deciding if the session is cwnd limited or not. New cwnd validation is disabled by default, newsack (formerly rfc6675_pipe) is enabled by default.

Without the improved Pipe calculation, PRR can not deliver the expected results (in high loss-fraction fast recovery scenarios).

Apr 18 2023, 6:31 PM

Apr 17 2023

cc accepted D39610: netstat: document that PCB information can't be read from corefiles.
Apr 17 2023, 11:52 PM

Apr 12 2023

cc accepted D39516: tcp: make net.inet.tcp.functions_default vnet specific.

Looks good to me. If the ')' char can be removed as pointed out in my inline comment, that will be better!

Apr 12 2023, 3:36 PM

Apr 6 2023

cc accepted D39427: tcp: misc cleanup of options for rack as well as socket option logging..
Apr 6 2023, 1:32 PM

Apr 5 2023

cc added inline comments to D39427: tcp: misc cleanup of options for rack as well as socket option logging..
Apr 5 2023, 8:34 PM
cc requested changes to D39427: tcp: misc cleanup of options for rack as well as socket option logging..
Apr 5 2023, 3:45 PM

Apr 4 2023

cc committed rGaa0188c837cb: Add myself (cc) as a src commiter. (authored by cc).
Add myself (cc) as a src commiter.
Apr 4 2023, 2:43 PM