当前位置: 技术问答>linux和unix
怎么修改pipe_buf大小
来源: 互联网 发布时间:2016-08-31
本文导语: 如何修改pipe_buf的大小呢? 1、修改limits.h里的#define PIPE_BUF 4096 重新编译内核?我看网上有人这么做了,但是没成功 2、直接修改/etc/security/limits.conf ???怎么修改?能行么? 3、其他?? 有人能提供...
如何修改pipe_buf的大小呢?
1、修改limits.h里的#define PIPE_BUF 4096
重新编译内核?我看网上有人这么做了,但是没成功
2、直接修改/etc/security/limits.conf
???怎么修改?能行么?
3、其他??
有人能提供一个简单的方法么?最好不用重新编译内核的!
1、修改limits.h里的#define PIPE_BUF 4096
重新编译内核?我看网上有人这么做了,但是没成功
2、直接修改/etc/security/limits.conf
???怎么修改?能行么?
3、其他??
有人能提供一个简单的方法么?最好不用重新编译内核的!
|
What good would it do you to rebuild your kernel with 'PIPE_BUF' set to
some value other than the number of bytes that one can write to a pipe
atomically?
Perhaps you are under the mistaken impression that 'PIPE_BUF'
determines how many bytes you can write to a pipe atomically (that is,
that the kernel accesses this value and uses it to influence how pipes
behave). It does not, it only *tells* you how many bytes you can write
to a pipe atomically. If you change it to something else, it will no
longer do so, making it useless.
PIPE_BUF is a consequence of other logic in the kernel, it is not a
configuration parameter.
http://software.itags.org/linux-unix/332459/
some value other than the number of bytes that one can write to a pipe
atomically?
Perhaps you are under the mistaken impression that 'PIPE_BUF'
determines how many bytes you can write to a pipe atomically (that is,
that the kernel accesses this value and uses it to influence how pipes
behave). It does not, it only *tells* you how many bytes you can write
to a pipe atomically. If you change it to something else, it will no
longer do so, making it useless.
PIPE_BUF is a consequence of other logic in the kernel, it is not a
configuration parameter.
http://software.itags.org/linux-unix/332459/
|
没遇到过 还真不知道如何解决
一条日志怎么那么大啊
我是觉得一条日志超过4k 这样详细的日志信息似乎没必要啊
一条日志怎么那么大啊
我是觉得一条日志超过4k 这样详细的日志信息似乎没必要啊
|
严重怀疑是多进程同时读写造成的错乱问题。以前做日志系统的时候也是参考syslog,多进程的写日志动作只是发事件,由唯一的进程接收事件然后写入日志文件。
希望楼主解决后回头说说原因,关注。
希望楼主解决后回头说说原因,关注。
|
ls说的很详细了
|
xuexi了