From: walter harms <wharms@bfs.de>
To: linux-ppp@vger.kernel.org
Subject: Re: Using PPPD pty option and script: controlling stdin buffer size?
Date: Tue, 12 Oct 2010 14:31:21 +0000 [thread overview]
Message-ID: <4CB47139.60200@bfs.de> (raw)
In-Reply-To: <291B2C7721AC7B49AD11449A2883992E2E0DF561DB@SINTEFEXMBX01.sintef.no>
I am not sure if i understand you correctly,
but can change the bufferhandling of stdio by setting the buffer size
using setbuf() (man 3 setbuf)
re,
wh
Arne Lie schrieb:
> Hi,
>
> We have a HW/SW set-up using Linux PPP over slow links, and have recently abandoned a solution with a dedicated kernel module driver for our specific hardware, and are now trying a pure user-mode solution using the pty option in pppd. Most if its performance is quite OK, but we see that we do not have complete control of the buffering along the packet signal path. From the PPPD MAN page it says that pty script starts a pseudo-tty instance, and that our script shall read data from it as it was from stdin using read(0,...). THIS WORKS. HOWEVER, since our link is slow we have implemented flow control, and in periods we do not read from stdio. In that period data builds up in stdio, but we see no sigh of data being dropped in the ppp0 interface queue (which is set to 3 packets as is the default value).
>
> Question: It seems that the stdin interface has a large buffer, much larger than we appreciate. Is there any way we can configure its size, making it smaller?
>
> Best regards,
>
>
> Arne Lie
> SINTEF ICT, Dept. of Communication Systems
> NO-7465 Trondheim, NORWAY
> Dir. phone +47 73 59 27 03 - mobile +47 450 20 040
> e-mail: arne.lie@sintef.no
>
> N�����r��y���b�X��ǧv�^�)޺{.n�+����{���b��^n�r��z�\x1a��h����&��\x1e�G���h�\x03(�階�ݢj"��\x1a�^[m�����z�ޖ���f���h���~�mml=
next prev parent reply other threads:[~2010-10-12 14:31 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-12 11:39 Using PPPD pty option and script: controlling stdin buffer size? Arne Lie
2010-10-12 14:31 ` walter harms [this message]
2010-10-12 14:36 ` Arne Lie
2010-10-12 15:18 ` James Carlson
2010-10-13 6:48 ` Arne Lie
2010-10-13 12:08 ` James Carlson
2010-10-13 12:19 ` Arne Lie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CB47139.60200@bfs.de \
--to=wharms@bfs.de \
--cc=linux-ppp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.