Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

[openvz] fs.aio-max-nr

jmginerjmginer Member, Host Rep
edited January 2015 in General

Quick, why to modify?:

http://forum.openvz.org/index.php?t=msg&goto=44068

https://bugzilla.openvz.org/show_bug.cgi?id=2953

The current issue?

https://bugzilla.openvz.org/show_bug.cgi?id=3161

Fixed? Seems yes, here:

https://openvz.org/Download/kernel/rhel6/042stab094.7/changes

fs/aio: aio_nr & aio_max_nr variables virtualization (PSBM-27188)
fs/aio: introduce aio_nr & aio_max_nr per-CT sysctls (PSBM-27188)

But, how to do? I don't find any documentation :(

Any idea?

Thanks!

Comments

  • jmginerjmginer Member, Host Rep
    edited January 2015

    Workaround, create a CTID.start script for the container who wants increase his fs.aio-max-nr value and add:

    sysctl -w fs.aio-max-nr=1000000
    

    If you want for all containers in your HN, run cron job, every 5 minutes:

    #! /bin/bash
    export PATH="/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"
    
    cd /etc/vz/conf; rm -rf *.start;
    ls /vz/private | cat > vzlist.txt;
    cat vzlist.txt | while read line; do
    echo "sysctl -w fs.aio-max-nr=1000000" > ${line}.start;
    chmod 755 ${line}.start;
    done
    

    So, for a new container creation, the customer only need to wait a bit (the cronjob delay) and do a stop/start of their VPS.

    If anybody know other method, I'm pleased to know :)

    Regards!!

  • Why not just do:

    sysctl -w fs.aio-max-nr=1048576 >> /etc/sysctl.conf

    On the host node?

  • jmginerjmginer Member, Host Rep

    @0xdragon said:
    Why not just do:

    sysctl -w fs.aio-max-nr=1048576 >> /etc/sysctl.conf

    On the host node?

    Not run, check this:
    https://bugzilla.openvz.org/show_bug.cgi?id=3161

Sign In or Register to comment.