PIPE questions for Linux 2.4 setup

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <linux-c-programming@...>
Date: Thursday, May 21, 2009 - 10:56 am

Dear C/Linux friends,

We wanted to increase PIPE_SIZE (from 4K to 8K on linux 2.4 on an AMD
LX800 system).
The result is a segmentation error as soon as Read() is reading more
data than 4K
from the pipe.
So pipe data seems to be damaged.
If we change PIPE_SIZE back tot 4K everything is running fine.
Question-1: Any suggestion to prevent this segmentation error ?

* PIPE_SIZE
If you look in the linux kernel code for PIPE_SIZE
("include/linux/pipe_fs_i.h") you find:
#define PIPE_SIZE PAGE_SIZE
I don't know if #define PIPE_SIZE PAGE_SIZE is necessary or just a
simple shortcut.
Question-2: Is it OK if PIPE_SIZE > PAGE_SIZE ?

* PAGE_SIZE
Question-3: Is it OK to increase Page_size on linux 2.4 on AMD LX800 system ?
Which aspects are limiting the user to config the PAGE_SIZE ?

--

With best regards,
Ad van den Broek
--
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: building libc, Darío Mariani, (Wed Dec 12, 9:44 pm)
Re: memory address represented as a string, Saurabh Sehgal, (Sun Jul 26, 4:26 am)
command output to variables, Jai Sharma, (Wed Jan 7, 8:35 am)
Issues updating 2.6-stable branch to 2.6.24.y, Yegor Yefremov, (Wed Aug 13, 9:42 am)
PIPE questions for Linux 2.4 setup, Ad van den Broek, (Thu May 21, 10:56 am)
Re: memory address represented as a string, Rahul K Patel, (Tue Jul 28, 6:09 am)
Re: PIPE questions for Linux 2.4 setup, Glynn Clements, (Thu May 21, 3:51 pm)
Re: command output to variables, Bert Wesarg, (Wed Jan 7, 10:31 am)
Re: command output to variables, Michele Mondelli, (Wed Jan 7, 9:33 am)
Re: command output to variables, Jason, (Sat Jan 10, 10:57 am)
Re: command output to variables, Jai Sharma, (Wed Jan 7, 10:59 am)
Re: command output to variables, Xin Zou, (Wed Jan 7, 8:54 am)