Bug 132798 - [patch] ggatec(8): ggated/ggatec connection slowdown problem
Summary: [patch] ggatec(8): ggated/ggatec connection slowdown problem
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 6.1-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-19 05:20 UTC by ota
Modified: 2017-12-31 22:34 UTC (History)
0 users

See Also:


Attachments
file.diff (8.31 KB, patch)
2009-03-19 05:20 UTC, ota
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 "192.168.0.0/8 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