The bug appears to be here (bonnie++.cpp)
void set_io_chunk_size(int size)
{ delete m_buf; pa_new(size, m_buf, m_buf_pa); m_io_chunk_size = size; }
void set_file_chunk_size(int size)
{ delete m_buf; m_buf = new char[__max(size, m_io_chunk_size)];
m_file_chunk_size = size; }
set_file_chunk_size() doesn't respect page alignment, but more
importantly it reallocates m_buf whilst leaving m_buf_pa pointing to the
old space.
You can work around it by providing the '-n' option before the '-s'
option on the command line, and ensuring you use the same chunksize for
both -n and -s. e.g.
# time bonnie++ -d /data/sdc -n 98:800k:500k:1000:32k -s 16384k:32k -u
root
Or you can use -s0 when using -n with a non-default chunk size.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/923987
Title:
bonnie++ crash with increased chunk size
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bonnie++/+bug/923987/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs