[CP] reduce sql_nio IO_BUFFER_SIZE to reduce the memory hold of session
This commit is contained in:
2
deps/oblib/src/rpc/obmysql/ob_sql_nio.cpp
vendored
2
deps/oblib/src/rpc/obmysql/ob_sql_nio.cpp
vendored
@ -131,7 +131,7 @@ private:
|
|||||||
class ReadBuffer
|
class ReadBuffer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum { IO_BUFFER_SIZE = 1<<16 };
|
enum { IO_BUFFER_SIZE = (1<<15) - 128};
|
||||||
ReadBuffer(int fd): fd_(fd), has_EAGAIN_(false), request_more_data_(false),
|
ReadBuffer(int fd): fd_(fd), has_EAGAIN_(false), request_more_data_(false),
|
||||||
alloc_buf_(NULL), buf_end_(NULL), cur_buf_(NULL), data_end_(NULL),
|
alloc_buf_(NULL), buf_end_(NULL), cur_buf_(NULL), data_end_(NULL),
|
||||||
consume_sz_(0)
|
consume_sz_(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user