Bug 132798

Summary: [patch] ggatec(8): ggated/ggatec connection slowdown problem
Product: Base System Reporter: ota
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: Open ---    
Severity: Affects Only Me    
Priority: Normal    
Version: 6.1-RELEASE   
Hardware: Any   
OS: Any   
Description Flags
file.diff none

Description ota 2009-03-19 05:20:00 UTC
Connection between ggate server and client slows down significantly while
coying a  file, about more than 20MB file size can cause the problem.
During slowdown, both server and client wants for each other and its
transmission rate is about 1 packet per second.  As a result, the system
really hangs up on any responses as FS does not response in timely manner.
All the commands then takes a couple of minutes easily to response to
the user.

Copying 20MB file taking more than 20 minuets is critically wrong.

Fix: The problem is ggated and ggatec create 2 TCP uni-directional connections.
That is screwing up the TCP layer.  Using 1 TCP connection for bi-
directional messaging fixes the problem.

Patch attached with submission follows:
How-To-Repeat: server# echo " RW /dev/ad1" > /etc/gg.exports
server# ggated

client# ggatec create -orw server /dev/ad1
client# mount /dev/ad1 /mnt/backup
client# rsync -a --delete /home /mnt/backup

This only happens when server CPU is 10 to 20 times slower than client
and client writes to the device; as far as NIC, they are the same
100BASE-TX on these hosts.    It does not happen with all files, neither.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2009-03-19 11:17:00 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-net

Over to maintainer(s).
Comment 2 Andre Oppermann freebsd_committer 2010-08-23 18:55:02 UTC
Responsible Changed
From-To: freebsd-net->pjd

Over to maintainer.
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:11 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 4 ota 2020-09-24 03:49:22 UTC
https://reviews.freebsd.org/D26542 was created with backward compatibility options.