Re: Compiling MOD_CC into kernel (TCP congestion control)?
On Sat, Apr 25, 2020 at 07:28:54PM +0200, Hartmann, O. wrote: > On a firewall/router project of ours I try to experiment with several > options/algorithms for mod_cc(4). I don't mean to sidetrack this thread but can you elaborate a bit? If it's a firewall/router then the TCP congestion control algorithm shouldn't really matter given that connections don't terminate on this device. Regards, Navdeep ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Tinderbox / universe buildfailure with custom options
Hi, I tried to make a tinderbox / universe build today, but it was failing with some custom buildoptions. The options are the following: WITH_EXTRA_TCP_STACKS=1 WITH_BEARSSL=1 WITH_PIE=1 WITH_RETPOLINE=1 What strange is, is, that with a "make buildworld buildkernel" everything works fine. Only the tinderbox / universe target seems to be broken by these options. Has anyone an idea why the tinderbox / universe target is broken with these build options? The following are the, rather shortened, error messages. ===> rescue/rescue (obj,build-tools) ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in jsmn.o >>> referenced by jsmn.c:0 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:0) >>> jsmn.o:(jsmn_parse) ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in jsmn.o >>> referenced by jsmn.c:0 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:0) >>> jsmn.o:(jsmn_parse) ld: error: can't create dynamic relocation R_X86_64_32S against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in jsmn.o >>> referenced by jsmn.c:304 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:304) >>> jsmn.o:(jsmn_strerror) ld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in jsmn.o >>> referenced by jsmn.c:316 (/boiler/nfs/src/lib/libpmc/pmu-events/jsmn.c:316) >>> jsmn.o:(jsmn_strerror) ld: error: can't create dynamic relocation R_X86_64_64 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output >>> defined in jsmn.o >>> referenced by jsmn.c >>> jsmn.o:(.rodata+0x0) --Gordon ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: Compiling MOD_CC into kernel (TCP congestion control)?
> On 25. Apr 2020, at 19:28, Hartmann, O. wrote: > > On a firewall/router project of ours I try to experiment with several > options/algorithms for mod_cc(4). The kernel is compiled statically, so > that no kernel module can be loaded at runtime, therefor I need to > compile the different modules mod_cc into the kernel. > > The manpage mod_cc(4) states: " ... Algorithm modules can be compiled > into the kernel or loaded as kernel modules ..." > > Trying to figure out which manpage could hold the necessary information > how to proceed with compiling those modules statically into the kernel, > I tried tcp(4), mod_cc(4) and tried to get some informations from > /usr/src/sys/conf/NOTES - without any succes. > > Can someone point me to the correct manpage to perform the desired task? Hi, I can't point you to a man page, but do you get what you want if you add lines like the existing one netinet/cc/cc_newreno.c optional inet | inet6 to sys/conf/files for the CC modules you would like to get compiled in your kernel? Best regards Michael > > Thanks in advance, > kind regards > > O. Hartmann ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Kernel free memory control / pressure
I am looked to code control kernel free memory /p ressure and see some strange points: - vm.v_free_target is RW but do nothing. You can set it to any value and this is don't have any effect. - vmd_free_target (as vm.domain.N.stats.free_target) is RD and don't have any sysctl to tune Same for v_free_min, v_free_reserved, v_pageout_free_min. As I see this behavior for 12 and current branches, after-NUMA kernels. Is this expected behavior? PS: (kgdb) p vm_dom[0].vmd_page_count $2 = 33454844 (kgdb) p vm_dom[1].vmd_page_count $3 = 31872620 What source of vm_dom[0].vmd_page_count > vm_dom[1].vmd_page_count? ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Compiling MOD_CC into kernel (TCP congestion control)?
On a firewall/router project of ours I try to experiment with several options/algorithms for mod_cc(4). The kernel is compiled statically, so that no kernel module can be loaded at runtime, therefor I need to compile the different modules mod_cc into the kernel. The manpage mod_cc(4) states: " ... Algorithm modules can be compiled into the kernel or loaded as kernel modules ..." Trying to figure out which manpage could hold the necessary information how to proceed with compiling those modules statically into the kernel, I tried tcp(4), mod_cc(4) and tried to get some informations from /usr/src/sys/conf/NOTES - without any succes. Can someone point me to the correct manpage to perform the desired task? Thanks in advance, kind regards O. Hartmann pgpsWs5uCiAPE.pgp Description: OpenPGP digital signature
Re: r360294: buildkernel failure: etinet/tcp_stacks/bbr.c:5605:35: error: incomplete definition of type
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Am Sat, 25 Apr 2020 11:32:49 +0100 Alexander V. Chernikov schrieb: > 25.04.2020, 11:18, "O. Hartmann" : > > Hello, > > > > recent commits to CURRENT makes buildkernel to fail due to some incomplete > > definition > > errors during compiling: > Should be fixed by r360295. Sorry for the breakage. Doesn't seem so: r360295: [...] - --- all_subdir_tcp --- - --- rack.o --- /usr/src/sys/modules/tcp/rack/../../../netinet/tcp_stacks/rack.c:9781:44: error: no member named 'ro_rt' in 'struct route_in6' if (error == EMSGSIZE && inp->inp_route6.ro_rt != NULL) ~~~ ^ /usr/src/sys/modules/tcp/rack/../../../netinet/tcp_stacks/rack.c:9782:26: error: no member named 'ro_rt' in 'struct route_in6' mtu = inp->inp_route6.ro_rt->rt_mtu; ~~~ ^ /usr/src/sys/modules/tcp/rack/../../../netinet/tcp_stacks/rack.c:9822:43: error: no member named 'ro_rt' in 'struct route' if (error == EMSGSIZE && inp->inp_route.ro_rt != NULL) ~~ ^ /usr/src/sys/modules/tcp/rack/../../../netinet/tcp_stacks/rack.c:9823:25: error: no member named 'ro_rt' in 'struct route' mtu = inp->inp_route.ro_rt->rt_mtu; ~~ ^ - --- all_subdir_uart --- [...] > > > > [...] > > - --- all_subdir_tcp --- > > - --- bbr.o --- > > /usr/src/sys/modules/tcp/bbr/../../../netinet/tcp_stacks/bbr.c:5605:35: > > error: incomplete > > definition of type 'struct nhop_object' > > (bbr->rc_inp->inp_route.ro_nh->nh_ifp == NULL)) { > > ^ > > /usr/src/sys/net/route.h:54:9: note: forward declaration of 'struct > > nhop_object' > > struct nhop_object *ro_nh; > > ^ > > /usr/src/sys/modules/tcp/bbr/../../../netinet/tcp_stacks/bbr.c:5621:36: > > error: incomplete > > definition of type 'struct nhop_object' > > bbr->rc_inp->inp_route.ro_nh->nh_ifp, > > ^ > > /usr/src/sys/net/route.h:54:9: note: forward declaration of 'struct > > nhop_object' > > struct nhop_object *ro_nh; > > ^ > > - --- all_subdir_sound --- > > > > Kind regards, > > > > oh > > > > - -- > > O. Hartmann > > > > Ich widerspreche der Nutzung oder Übermittlung meiner Daten für > > Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). > >> -BEGIN PGP SIGNATURE- > >> > >> iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXqQOOAAKCRA4N1ZZPba5 > >> R0vCAQCpZfq1XEolmh0i1s3RCyzLVYT4/gmnNreggF2Mz+kpLgEAnwVkwWyVCyxQ > >> BwZci0bIuJXh6sffWO2fD0yvNG1cKAM= > >> =/6QA > >> -END PGP SIGNATURE- > > > > ___ > > freebsd-current@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > ___ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" - -- O. Hartmann Ich widerspreche der Nutzung oder Übermittlung meiner Daten für Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). -BEGIN PGP SIGNATURE- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXqQVRwAKCRA4N1ZZPba5 R5eLAPwJghNncm/oYEMhFdAERFqfSdcopKcXfU90+JphysjFFgEAwbaUQUvQGNas Hn7q4m9JmsCgsMSEvjeY4czVN3tiigQ= =EsKQ -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
Re: r360294: buildkernel failure: etinet/tcp_stacks/bbr.c:5605:35: error: incomplete definition of type
25.04.2020, 11:18, "O. Hartmann" : > Hello, > > recent commits to CURRENT makes buildkernel to fail due to some incomplete > definition errors > during compiling: Should be fixed by r360295. Sorry for the breakage. > > [...] > - --- all_subdir_tcp --- > - --- bbr.o --- > /usr/src/sys/modules/tcp/bbr/../../../netinet/tcp_stacks/bbr.c:5605:35: > error: incomplete > definition of type 'struct nhop_object' (bbr->rc_inp->inp_route.ro_nh->nh_ifp > == NULL)) { > ^ > /usr/src/sys/net/route.h:54:9: note: forward declaration of 'struct > nhop_object' > struct nhop_object *ro_nh; > ^ > /usr/src/sys/modules/tcp/bbr/../../../netinet/tcp_stacks/bbr.c:5621:36: > error: incomplete > definition of type 'struct nhop_object' bbr->rc_inp->inp_route.ro_nh->nh_ifp, > ^ > /usr/src/sys/net/route.h:54:9: note: forward declaration of 'struct > nhop_object' > struct nhop_object *ro_nh; > ^ > - --- all_subdir_sound --- > > Kind regards, > > oh > > - -- > O. Hartmann > > Ich widerspreche der Nutzung oder Übermittlung meiner Daten für > Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). >> -BEGIN PGP SIGNATURE- >> >> iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXqQOOAAKCRA4N1ZZPba5 >> R0vCAQCpZfq1XEolmh0i1s3RCyzLVYT4/gmnNreggF2Mz+kpLgEAnwVkwWyVCyxQ >> BwZci0bIuJXh6sffWO2fD0yvNG1cKAM= >> =/6QA >> -END PGP SIGNATURE- > > ___ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
r360294: buildkernel failure: etinet/tcp_stacks/bbr.c:5605:35: error: incomplete definition of type
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Hello, recent commits to CURRENT makes buildkernel to fail due to some incomplete definition errors during compiling: [...] - --- all_subdir_tcp --- - --- bbr.o --- /usr/src/sys/modules/tcp/bbr/../../../netinet/tcp_stacks/bbr.c:5605:35: error: incomplete definition of type 'struct nhop_object' (bbr->rc_inp->inp_route.ro_nh->nh_ifp == NULL)) { ^ /usr/src/sys/net/route.h:54:9: note: forward declaration of 'struct nhop_object' struct nhop_object *ro_nh; ^ /usr/src/sys/modules/tcp/bbr/../../../netinet/tcp_stacks/bbr.c:5621:36: error: incomplete definition of type 'struct nhop_object' bbr->rc_inp->inp_route.ro_nh->nh_ifp, ^ /usr/src/sys/net/route.h:54:9: note: forward declaration of 'struct nhop_object' struct nhop_object *ro_nh; ^ - --- all_subdir_sound --- Kind regards, oh - -- O. Hartmann Ich widerspreche der Nutzung oder Übermittlung meiner Daten für Werbezwecke oder für die Markt- oder Meinungsforschung (§ 28 Abs. 4 BDSG). -BEGIN PGP SIGNATURE- iHUEARYIAB0WIQSy8IBxAPDkqVBaTJ44N1ZZPba5RwUCXqQOOAAKCRA4N1ZZPba5 R0vCAQCpZfq1XEolmh0i1s3RCyzLVYT4/gmnNreggF2Mz+kpLgEAnwVkwWyVCyxQ BwZci0bIuJXh6sffWO2fD0yvNG1cKAM= =/6QA -END PGP SIGNATURE- ___ freebsd-current@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"