From nobody Thu Oct 13 23:02:00 2022 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MpQ5K5Zrrz4dsk0 for ; Thu, 13 Oct 2022 23:02:13 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-qk1-x735.google.com (mail-qk1-x735.google.com [IPv6:2607:f8b0:4864:20::735]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MpQ5J6FWlz4G4j for ; Thu, 13 Oct 2022 23:02:12 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: by mail-qk1-x735.google.com with SMTP id o22so1449847qkl.8 for ; Thu, 13 Oct 2022 16:02:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=longcount.org; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=EXL1hL8vkMcgWCSUAnZ3WGzs+7s3+Vp3XLCXYuEzpIo=; b=Pu9P6jrgUqsdkqj/VoUXd9YfCCd6KopmBnesOVeiz4ssBjvBGD+QPUQetVR9z+Kh5U UoBFuu+y0D6B1eAVZkhb4TQZmLwdSEyNK6ZDXiJJToHkatob2vWTz+Ov9OeN+UqcqXkC JRbr1oZoTN64ONUssQI/NrtikU9favZ6efkPQVMajCIgf8iedLescVx5aWpK67SwrbeL M/naGGOifbc/t4ZqTQhj2SP3fLIIZscGQPuFMqHb2RTZzFweeMdE30e0RBpRJt1HeUrr drBf1FoSg1t1IhCUI4yggrGI6Hy+Vf9U/Kdil+VW5wqTmpoUihCvnnkZxEV+/78ghJ+L 8NUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=EXL1hL8vkMcgWCSUAnZ3WGzs+7s3+Vp3XLCXYuEzpIo=; b=gh+Ks1i+x4x9QQdnvVc9Ss4iWdU3T+zZeJHjQBseRwAmi2Qg7q8S7f04120Q0gpLYK OIaVUEORo5QyvHDm4eMIFdpOx35MczvcUnjpk39HXk1ePoh2QjdRrbIBgYHFLrHO0yeK mFtOiKe24QSo2JXGCZfpFujUM70m6JtPZ2ndxa0YPRC9LNn9rkJXxOr1+XYAU60/0Hfy d1DMenZ95tMcgMo4xWr0ck22cOKJfL2bhHCLCBQ/PaKV1n4qk9rvg6808t8wkRJZJHZM 53MYznteQjnlcuyXYhaASC6/CZPkW6dZqhpGa2CanWO/12p5goByKkZRJ4gM1hruAONL myUg== X-Gm-Message-State: ACrzQf0cUTKRBixTBXFuBN95HHfOe23hL+Th+rFEnFi2n9YO5qn861yY gclNxAeHsuqTpDXfRtuzj6VqD96xuBz1pyHLEPfFaQ== X-Google-Smtp-Source: AMsMyM6jS3urRV+Nb3k9HvUY/qjkLpUEaEIrHqIaoc4HammWHSCdGaphlu3b9W425kn5p8FJ9liJBPVJg/O3TUPCxu4= X-Received: by 2002:a37:b2c5:0:b0:6df:f8d6:6ea0 with SMTP id b188-20020a37b2c5000000b006dff8d66ea0mr1851069qkf.386.1665702131286; Thu, 13 Oct 2022 16:02:11 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <586238fe-a9f-94b5-65b6-bc505551e9fb@puchar.net> In-Reply-To: <586238fe-a9f-94b5-65b6-bc505551e9fb@puchar.net> From: Mark Saad Date: Thu, 13 Oct 2022 19:02:00 -0400 Message-ID: Subject: Re: is this FreeBSD problem or HP switch To: Wojciech Puchar Cc: freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="000000000000d6580c05eaf27fef" X-Rspamd-Queue-Id: 4MpQ5J6FWlz4G4j X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=longcount.org header.s=google header.b=Pu9P6jrg; dmarc=none; spf=pass (mx1.freebsd.org: domain of nonesuch@longcount.org designates 2607:f8b0:4864:20::735 as permitted sender) smtp.mailfrom=nonesuch@longcount.org X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-0.999]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; R_DKIM_ALLOW(-0.20)[longcount.org:s=google]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::735:from]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; TO_MATCH_ENVRCPT_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_HAS_DN(0.00)[]; DKIM_TRACE(0.00)[longcount.org:+]; TO_DN_SOME(0.00)[]; DMARC_NA(0.00)[longcount.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --000000000000d6580c05eaf27fef Content-Type: text/plain; charset="UTF-8" Wojciech There could be a lot going on here. I have used HP-2530's on HP DL360's running FreeBSD without many problems. They are store and forward switches , so they do buffer packets before sending them along. So it could be dropping some of them but that should be easy to discover by looking at the switch's interface and checking how many errors you have on each port . However the issue you describe is probably not a FreeBSD problem or Switch problem, but more of a how busy your computer A is. When you start to saturate a network card for either packets per second or bits per second the OS will have to deal with it by delaying the response of other traffic by one way or another. Imagine your computer A is running a web server and you are hammering it with 1Gb/s of traffic. The CPU on that server will also become busy handling the traffic and running the webserver. When you then send that same computer ICMP, another TCP session , UDP traffic etc. The Network card will be unable to process the traffic , as it's out of resources, or it could accept the traffic in and the cpu may not idle enough to pick the packets off the card and process them in a in a timely manner. I hope that helps. On Thu, Oct 13, 2022 at 6:48 PM Wojciech Puchar wrote: > i have HP-2530-24G switch in home and 3 VLANs. > there was no traffic on 2 of them, one vlan have full bandwitch traffic > from computer A to computer B - at 1000Mbit/s > At this time ping from computer C to computer A (computer C have 100Mbit/s > card) was random between 1 and 1000ms. > > Just limiting artifically speed to 950Mbit/s solved the problem. > > Is this because switch behaves that way or can it be a FreeBSD problem > (all computers runs FreeBSD) > > > > -- mark saad | nonesuch@longcount.org --000000000000d6580c05eaf27fef Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Wojciech
=C2=A0=C2=A0 Ther= e could be a lot going on here. I have used HP-2530's on HP DL360's= running FreeBSD without many problems.
They are store and forwar= d switches , so they do buffer packets before sending them along. So it cou= ld be dropping some of them
but that should be easy to discover b= y looking at the switch's interface and checking how many errors you ha= ve on each port .
However the issue you describe is probably not = a FreeBSD problem or Switch problem, but more of a how busy your computer A= is.
When you start to saturate a network card for either pa= ckets per second or bits per second the OS will have to deal with it by del= aying
=C2=A0the response of other traffic by one way or another. = Imagine your computer A is running a web server and you are hammering it wi= th
1Gb/s of traffic. The CPU on that server will also become= busy handling the traffic and running the webserver. When you then send
=C2=A0that same computer ICMP, another TCP session , UDP traffic et= c. The Network card will be unable to process the traffic , as it's out=
of resources, or it could accept the traffic in and the cpu= may not idle enough to pick the packets off the card and process them in a=
in a timely manner.=C2=A0

I h= ope that helps.

On Thu, Oct 13, 2022 at 6:48 PM Wojciech Puchar &= lt;wojtek@puchar.net> wrote:
i have HP-2530-24G= switch in home and 3 VLANs.
there was no traffic on 2 of them, one vlan have full bandwitch traffic from computer A to computer B - at 1000Mbit/s
At this time ping from computer C to computer A (computer C have 100Mbit/s =
card) was random between 1 and 1000ms.

Just limiting artifically speed to 950Mbit/s solved the problem.

Is this because switch behaves that way or can it be a FreeBSD problem
(all computers runs FreeBSD)





--
--000000000000d6580c05eaf27fef--