Linux PPP protocol development
 help / color / mirror / Atom feed
* Using PPPD pty option and script: controlling stdin buffer size?
@ 2010-10-12 11:39 Arne Lie
  2010-10-12 14:31 ` walter harms
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Arne Lie @ 2010-10-12 11:39 UTC (permalink / raw)
  To: linux-ppp

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 1278 bytes --]

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Ç+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þšiþ)í…æèw*\x1fjg¬±¨\x1e¶‰šŽŠÝ¢jÿ¾\a«þG«éÿ¢¸\f¢·¦j:+v‰¨ŠwèjØm¶Ÿÿþø\x1e¯ù\x1e®w¥þŠàþf£¢·hšâúÿ†Ù¥

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-10-13 12:19 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-12 11:39 Using PPPD pty option and script: controlling stdin buffer size? Arne Lie
2010-10-12 14:31 ` walter harms
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox