:orphan: .. index:: pair: struct; tapi_memaslap_opt .. _doxid-structtapi__memaslap__opt: struct tapi_memaslap_opt ======================== .. toctree:: :hidden: Overview ~~~~~~~~ memaslap specific options. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct tapi_memaslap_opt { // fields size_t :ref:`n_servers`; const struct sockaddr* :ref:`servers`[TAPI_MEMASLAP_SERVERS_MAX]; :ref:`tapi_job_opt_uint_t` :ref:`threads`; :ref:`tapi_job_opt_uint_t` :ref:`concurrency`; :ref:`tapi_job_opt_uint_t` :ref:`conn_sock`; :ref:`tapi_job_opt_uint_t` :ref:`execute_number`; :ref:`tapi_job_opt_uint_t` :ref:`time`; :ref:`tapi_job_opt_uint_t` :ref:`win_size`; :ref:`tapi_job_opt_uint_t` :ref:`fixed_size`; :ref:`tapi_job_opt_double_t` :ref:`verify`; :ref:`tapi_job_opt_uint_t` :ref:`division`; :ref:`tapi_job_opt_uint_t` :ref:`stat_freq`; :ref:`tapi_job_opt_double_t` :ref:`expire_verify`; :ref:`tapi_job_opt_double_t` :ref:`overwrite`; bool :ref:`reconnect`; bool :ref:`udp`; bool :ref:`facebook`; bool :ref:`bin_protocol`; :ref:`tapi_job_opt_uint_t` :ref:`expected_tps`; :ref:`tapi_job_opt_uint_t` :ref:`rep_write`; bool :ref:`verbose`; const char* :ref:`cfg_cmd`; :ref:`tapi_memaslap_cfg_opt`* :ref:`cfg_opts`; const char* :ref:`memaslap_path`; }; .. _details-structtapi__memaslap__opt: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ memaslap specific options. Fields ------ .. index:: pair: variable; n_servers .. _doxid-structtapi__memaslap__opt_1acf56cdae63fe11ba87df869e90b8c1d8: .. ref-code-block:: cpp :class: doxyrest-title-code-block size_t n_servers Number of actual servers in ``servers``. .. index:: pair: variable; servers .. _doxid-structtapi__memaslap__opt_1a09d12f3ce3f2aba2ef7585bb249d592b: .. ref-code-block:: cpp :class: doxyrest-title-code-block const struct sockaddr* servers[TAPI_MEMASLAP_SERVERS_MAX] List one or more servers to connect. Servers count must be less than threads count. e.g.: -s 192.168.31.31:1234,localhost:11211. .. index:: pair: variable; threads .. _doxid-structtapi__memaslap__opt_1a9986fb3f2e4f45e7a9f1ae4448f6147c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` threads Number of threads to startup. .. index:: pair: variable; concurrency .. _doxid-structtapi__memaslap__opt_1af31c8f90d03c949be44ce43c4af2c9b5: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` concurrency The number of concurrencies memaslap runs with. .. index:: pair: variable; conn_sock .. _doxid-structtapi__memaslap__opt_1a3bdcd0caee502a9597915825e9242476: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` conn_sock Number of TCP socks per concurrency. .. index:: pair: variable; execute_number .. _doxid-structtapi__memaslap__opt_1ae1f473da48da35cbd209d23e9afb715d: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` execute_number Number of operations (get and set) to execute for the given test. .. index:: pair: variable; time .. _doxid-structtapi__memaslap__opt_1ae52c49e918601fbbc68a9060044b286c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` time How long the test to run, in seconds. e.g.: time=20s. .. index:: pair: variable; win_size .. _doxid-structtapi__memaslap__opt_1a4e61dbc98ada57edc369c22beefffbaa: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` win_size Task window size of each concurrency, in Kilobytes. e.g.: win_size=10k. .. index:: pair: variable; fixed_size .. _doxid-structtapi__memaslap__opt_1ae4baa1c7082d7f9a329bf0146d25d5a1: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` fixed_size Fixed length of value. .. index:: pair: variable; verify .. _doxid-structtapi__memaslap__opt_1a96c431106d5d893ab9b8f8d579c8d44a: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_double_t` verify The proportion of date verification, e.g.: verify=0.01. .. index:: pair: variable; division .. _doxid-structtapi__memaslap__opt_1a9cd0db417c01859b4103e8c47421951e: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` division Number of keys to multi-get once. .. index:: pair: variable; stat_freq .. _doxid-structtapi__memaslap__opt_1a8086644cbe916428aac1a89ea2ece901: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` stat_freq Frequency of dumping statistic information, in seconds. e.g.: resp_freq=10s. .. index:: pair: variable; expire_verify .. _doxid-structtapi__memaslap__opt_1a6f42de47ded35caf5c83ef739870fb50: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_double_t` expire_verify The proportion of objects with expire time, e.g.: exp_verify=0.01. Default no object with expire time. .. index:: pair: variable; overwrite .. _doxid-structtapi__memaslap__opt_1a03b8b3882cf87cecb2e9ec9bc94d5752: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_double_t` overwrite The proportion of objects need overwrite, e.g.: overwrite=0.01. Default never overwrite object. .. index:: pair: variable; reconnect .. _doxid-structtapi__memaslap__opt_1a8c6a1b642d5b43ba18be04d99a74a2c1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool reconnect Reconnect tests: when connection is closed it will be reconnected. .. index:: pair: variable; udp .. _doxid-structtapi__memaslap__opt_1aefdff03c2a87e76eb0b6f43602ae42f1: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool udp UDP tests. TCP port and UDP port of server must be same. .. index:: pair: variable; facebook .. _doxid-structtapi__memaslap__opt_1a2a9ad0abcae8a5617eaef5afec18fba2: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool facebook Enable facebook test feature, set with TCP and multi-get with UDP. .. index:: pair: variable; bin_protocol .. _doxid-structtapi__memaslap__opt_1a1b6d82901146dca76b2befc5f0f93ba6: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool bin_protocol Enable binary protocol. Default with ASCII protocol. .. index:: pair: variable; expected_tps .. _doxid-structtapi__memaslap__opt_1a41f1a64a65ac82c72c14e5e7f46cf233: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` expected_tps Expected throughput, in operations/second. e.g.: tps=10k. .. index:: pair: variable; rep_write .. _doxid-structtapi__memaslap__opt_1a7f533f68e190d4eca76751b1c29cc537: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_job_opt_uint_t` rep_write The first n-th servers can write data, e.g.: rep_write=2. .. index:: pair: variable; verbose .. _doxid-structtapi__memaslap__opt_1ab4f20af8d201ebd55825722b558a9c10: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool verbose Output detailed information when verification fails. .. index:: pair: variable; cfg_cmd .. _doxid-structtapi__memaslap__opt_1a959f1d09800879d1bafcba84f1d366f9: .. ref-code-block:: cpp :class: doxyrest-title-code-block const char* cfg_cmd Path to configuration file .. index:: pair: variable; cfg_opts .. _doxid-structtapi__memaslap__opt_1a8b1ede1bba7387b31979d332a1cda276: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`tapi_memaslap_cfg_opt`* cfg_opts If not ``NULL``, temporary configuration file will be created and filled according to fields of this structure. After job termination it will be automatically removed. cfg_cmd field is ignored and reset to ``NULL`` if this field is set. .. index:: pair: variable; memaslap_path .. _doxid-structtapi__memaslap__opt_1a7932f814984f45f3e2e661a0d5465f83: .. ref-code-block:: cpp :class: doxyrest-title-code-block const char* memaslap_path Path to memaslap exec.