From 6f10d4f6fe25e37efabf45c3a6b5cf573f4bd66c Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 5 Mar 2004 22:50:41 +0000 Subject: 2004-03-05 Marcus Brinkmann * term.h (QUEUE_LOWAT): Increase to 200. (QUEUE_HIWAT): Increase to 8100. --- term/ChangeLog | 5 +++++ term/term.h | 8 ++++++-- 2 files changed, 11 insertions(+), 2 deletions(-) (limited to 'term') diff --git a/term/ChangeLog b/term/ChangeLog index ada36fc6..aa997d57 100644 --- a/term/ChangeLog +++ b/term/ChangeLog @@ -1,3 +1,8 @@ +2004-03-05 Marcus Brinkmann + + * term.h (QUEUE_LOWAT): Increase to 200. + (QUEUE_HIWAT): Increase to 8100. + 2003-04-25 Alfred M. Szmidt * term.h (rdev): Change type to dev_t. diff --git a/term/term.h b/term/term.h index 28f4fe10..8448d78e 100644 --- a/term/term.h +++ b/term/term.h @@ -80,8 +80,12 @@ long termflags; #define NO_OWNER 0x00000200 /* there is no foreground_id */ #define ICKY_ASYNC 0x00000400 /* some user has set O_ASYNC */ -#define QUEUE_LOWAT 100 -#define QUEUE_HIWAT 300 +/* Use a high watermark that allows about as much input as once as + other operating systems do. Using something just a bit smaller + than a power of 2 helps to make maximum use of the buffer and avoid + reallocation for just a few bytes. */ +#define QUEUE_LOWAT 200 +#define QUEUE_HIWAT 8100 /* Global lock */ struct mutex global_lock; -- cgit v1.2.3