From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Fireperf: Date: Mon, 18 Apr 2022 13:22:47 +0200 Message-ID: In-Reply-To: <7235731A-E6F5-4F9A-AA5F-0BC70AC67988@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7321532965568065307==" List-Id: --===============7321532965568065307== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Michael, On 15/02/2021 17:08, Michael Tremer wrote: > Hi, >=20 >> On 12 Feb 2021, at 12:34, Adolf Belka (ipfire-dev) wrote: >> >> Forgot to add that I built it on my Arch Linux system with the following c= ommands:- >> >> ./autogen.sh >> >> /configure CFLAGS=3D'-g -O0' --prefix=3D/usr --sysconfdir=3D/etc --libdir= =3D/usr/lib (This was recommended to be used after autogen was run) >> >> make >> >> sudo make install >=20 > That=E2=80=99s correct. >=20 > The CFLAGS disable any optimisation (-O0) and enable generation of debuggin= g sections (-g) which are useful for gdb. >=20 > You probably don=E2=80=99t need this, so you can build it without those fla= gs. >=20 > Do you know what the process is that we could provide packages for Arch and= any derivatives? I realised that I never did anything further regarding your question=20 about how to get fireperf into arch linux. So more than a year later I thought I should do something about it. Arch=20 Linux has something called the AUR (Arch User Repository) which is a=20 community-driven repository for Arch users. It contains package=20 descriptions (PKGBUILDs) that allow you to compile a package from source=20 with makepkg and then install it via pacman, the package management tool=20 in Arch. If packages in the AUR get enough votes and there is a TU (Trusted User)=20 willing to pick up the package then it can be moved into the community=20 repository so users wouldn't need to do their own makepkg compiling. I have been looking at what is involved in getting a package into the=20 AUR and I have created a PKGBUILD file and tested it with makepkg and=20 getting the resultant package installed with pacman. Everything worked=20 well. I have used some arch tests to confirm that the PKGBUILD and=20 resultant package meet the arch linux standards. I have an account on the AUR and I have modified it to give me ssh=20 access into the AUR and created a git repo clone for fireperf on my=20 computer. Each package in the AUR has its own git repo in the Arch system. The last thing to do now is to do a git push of the fireperf package=20 from my git repo to the AUR. Before I do that I just want to confirm=20 that you still want to go ahead with that, as it is more than a year=20 since the idea was raised. I will be the maintainer of the package in the AUR which basically means=20 I will ensure it stays up to date and deal with any problems people=20 might have with compiling and installing it, although this is a very=20 simple package in terms of that. Regards, Adolf. >=20 > In general, I want to make things like libloc and fireperf available and do= that as easy as possible. >=20 > -Michael >=20 >> Regards, >> >> Adolf. >> >> >> On 12/02/2021 13:30, Adolf Belka (ipfire-dev) wrote: >>> Hi all, >>> >>> I tried to also test this out on my system. >>> >>> As I am not familiar with what all the command options do I just followed= Daniels commands. >>> >>> server: IPFire 2.25 - Core Update 153; Intel Celeron CPU J1900 @ 1.99GHz = x4; I211 Gigabit Network Connection >>> >>> client: Arch Linux; Intel Core i5-8400 CPU @ 2.80GHz 6 core; 1GBit nic >>> >>> Server: >>> fireperf -s -P 10000 -p 63000:630010 >>> >>> >>> Client: >>> fireperf -c -P 1 -x -p 63000:63010 where was re= placed with the IP address of my IPFire Green connection. >>> >>> >>> I started the server fireperf and there was the table updating regularly. >>> >>> I started the client and got "Could not open socket: Address family not s= upported by protocol" scrolling up the screen. >>> >>> I looked in the log (journalctl) but there were no messages at all relate= d to fireperf just the command being run. >>> >>> >>> Any thoughts on what I am missing to have setup or installed? >>> >>> >>> Regards, >>> >>> Adolf. >>> >>> >>> >>> On 09/02/2021 13:53, daniel.weismueller(a)ipfire.org wrote: >>>> >>>> >>>> Hi guys, >>>> >>>> today I installed fireperf on my testing IPFire and my Ubuntu PC. >>>> >>>> server: IPFire Core 154; Intel i7 4790; Intel 82571EB/GB 1GBit Nic >>>> Client: Ubuntu 20.4; Intel i7 9700; Intel i219-V 1GBit Nic >>>> >>>> Michael and I agreed that one more port should be opened per 5000 expect= ed connection per second (cps) >>>> >>>> So here my results: >>>> >>>> >>>> Server: >>>> fireperf -s -P 10000 -p 63000:630010 >>>> >>>> Client: >>>> fireperf -c -P 1 -x -p 63000:63010 -> ~5000 cps >>>> >>>> fireperf -c -P 10 -x -p 63000:63010 -> ~30000-35000 cps >>>> >>>> fireperf -c -P 100 -x -p 63000:63010 -> ~35000-40000 cps >>>> >>>> fireperf -c -P 1000 -x -p 63000:63010 -> ~40000-45000 cps >>>> >>>> fireperf -c -P 10000 -x -p 63000:63010 -> ~46000-48000 cps >>>> >>>> The cpu utilization was limited to one core and increased in sync with t= he cps on both sides. >>>> >>>> In my last test, the utilization was about 85-100% on the server and 75-= 95% on the client. >>>> >>>> In the next days I will test our mini and post the results here. >>>> >>>> - >>>> >>>> Daniel >>>> >=20 --=20 Sent from my laptop --===============7321532965568065307==--