MCPcopy Index your code
hub / github.com/akopytov/sysbench

github.com/akopytov/sysbench @1.0.20

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.20 ↗ · + Follow
454 symbols 1,200 edges 48 files 27 documented · 6%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

**WARNING: Oracle support is unmaintained as of sysbench 1.0. You may want to try sysbench 0.5 instead. The corresponding code and instructions below are still in the source tree in case somebody wants to update them. Patches are always welcome! **


Oracle Build steps

Using Ubuntu 14.04 - intructions dated for 21/09/2016 (Was built on AWS in an r3.xlarge These actions were done against 0.5 checkout)

  • Setup Oracle Instant Client - https://help.ubuntu.com/community/Oracle%20Instant%20Client download from http://www.oracle.com/technetwork/database/features/instant-client/index-097480.html.

The following RPM's and upload them to the server: - oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm - oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm

alien -i oracle-instantclient12.1-basic-12.1.0.2.0-1.x86_64.rpm
alien -i oracle-instantclient12.1-devel-12.1.0.2.0-1.x86_64.rpm
  • Install Cuda - http://www.r-tutor.com/gpu-computing/cuda-installation/cuda7.5-ubuntu
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb 
sudo apt-get update
sudo apt-get install cuda
export CUDA_HOME=/usr/local/cuda-7.5 
export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 

PATH=${CUDA_HOME}/bin:${PATH}
export PATH
echo "/usr/lib/oracle/12.1/client64/lib" > /etc/ld.so.conf.d/oracle-client-12.1.conf
ldconfig
  • Build sysbench Use the following configure option to build with Oracle support:
./configure --with-oracle="/usr/lib/oracle/12.1/client64"

Run the following commands to allow sysbench use the full number of cores:

sudo sh -c 'for x in /sys/class/net/eth0/queues/rx-*; do echo ffffffff> $x/rps_cpus; done'
sudo sh -c "echo 32768 > /proc/sys/net/core/rps_sock_flow_entries"
sudo sh -c "echo 4096 > /sys/class/net/eth0/queues/rx-0/rps_flow_cnt"

Core symbols most depended-on inside this repo

log_text
called by 310
src/sb_logger.c
sb_get_value_string
called by 34
src/sb_options.c
sb_get_value_int
called by 27
src/sb_options.c
log_errno
called by 27
src/sb_logger.c
sb_get_value_flag
called by 14
src/sb_options.c
sb_lua_var_func
called by 13
src/sb_lua.c
pthread_mutex_unlock
called by 12
src/sb_win.c
call_error
called by 12
src/sb_lua.c

Shape

Function 433
Class 21

Languages

C94%
C++6%

Modules by API surface

src/sb_lua.c54 symbols
src/tests/fileio/sb_fileio.c48 symbols
src/sb_options.c37 symbols
src/db_driver.c33 symbols
src/sysbench.c31 symbols
src/drivers/mysql/drv_mysql.c22 symbols
src/sb_win.c21 symbols
src/drivers/oracle/drv_oracle.c21 symbols
src/drivers/pgsql/drv_pgsql.c20 symbols
src/drivers/drizzle/drv_drizzle.c17 symbols
src/drivers/attachsql/drv_attachsql.c16 symbols
src/tests/memory/sb_memory.c15 symbols

For agents

$ claude mcp add sysbench \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact