From b06cd32d19dffe3b3fea0abb5a44d8cb57e7dfda Mon Sep 17 00:00:00 2001 From: eb Date: Mon, 7 May 2007 21:36:54 +0000 Subject: Added fusb_sysconfig::default_block_size (<= max_block_size). Changed Linux default_block_size to 4KB, and default buffersize to 1MB. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@5253 221aa14e-8319-0410-a670-987f0aec2ac5 --- usrp/host/lib/legacy/fusb_sysconfig_linux.cc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'usrp/host/lib/legacy/fusb_sysconfig_linux.cc') diff --git a/usrp/host/lib/legacy/fusb_sysconfig_linux.cc b/usrp/host/lib/legacy/fusb_sysconfig_linux.cc index 468fa9f82..e5dc1f457 100644 --- a/usrp/host/lib/legacy/fusb_sysconfig_linux.cc +++ b/usrp/host/lib/legacy/fusb_sysconfig_linux.cc @@ -23,8 +23,9 @@ #include #include -static const int MAX_BLOCK_SIZE = 16 * 1024; // hard limit -static const int FUSB_BUFFER_SIZE = 2 * (1L << 20); // 2 MB (was 8 MB) +static const int MAX_BLOCK_SIZE = 16 * 1024; // hard limit +static const int DEFAULT_BLOCK_SIZE = 4 * 1024; // fewer kernel memory problems +static const int FUSB_BUFFER_SIZE = 1 * (1L << 20); // 1MB fusb_devhandle * fusb_sysconfig::make_devhandle (usb_dev_handle *udh) @@ -37,6 +38,11 @@ int fusb_sysconfig::max_block_size () return MAX_BLOCK_SIZE; } +int fusb_sysconfig::default_block_size () +{ + return DEFAULT_BLOCK_SIZE; +} + int fusb_sysconfig::default_buffer_size () { return FUSB_BUFFER_SIZE; -- cgit