Default buffer size for a file on Linux

后端 未结 3 836
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 14:55

The documentation states that the default value for buffering is: If omitted, the system default is used. I am currently on Red Hat Linux 6, but I am not able

3条回答
  •  甜味超标
    2020-12-05 14:59

    I'm not sure it's the right answer but python 3.0 library and python 20 library both describe io.DEFAULT_BUFFER_SIZE in the same way that the default is described in the docs for open(). Coincidence?

    If not, then the answer for me was:

    $ python
    >>> import io
    >>> io.DEFAULT_BUFFER_SIZE
    8192
    
    $ lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description:    Ubuntu 14.04.1 LTS
    Release:        14.04
    Codename:       trusty
    

提交回复
热议问题