Commit b30d2505 authored by Thorsten Simons's avatar Thorsten Simons

1.3.1 - added the info chapter to the documentation

parent 38340aa5
......@@ -8,24 +8,23 @@ Queries running
---------------
As the queries are running in parallel, you will receive info about its success
(or fail) once the query has ended. To find out which queries are running at the
(or fail) once each query has ended. To find out which queries are running at the
moment, you can run this command in a second session::
$ lsof 2>/dev/null | grep '__\*'
hcpreques 602 sm 16u REG 1,5 0 5461618 \
/private/var/folders/y3/74nllcpj5f511sgw18t55_qh0000gn/T/I_am__*clientip_httpcode*__pbxvbswl
hcpreques 603 sm 17u REG 1,5 0 5461730 \
/private/var/folders/y3/74nllcpj5f511sgw18t55_qh0000gn/T/I_am__*clientip_request_httpcode*__198td_f7
hcpreques 602 sm 16u REG 1,5 0 5461618 /private/var/folders/y3/74nllcpj5f511sgw18t55_qh0000gn/T/I_am__*clientip_httpcode*__pbxvbswl
hcpreques 603 sm 17u REG 1,5 0 5461730 /private/var/folders/y3/74nllcpj5f511sgw18t55_qh0000gn/T/I_am__*clientip_request_httpcode*__198td_f7
In this example, the string ``I_am__*clientip_httpcode*__pbxvbswl`` in the last field of the
output indicates that process 602 (the second field) runs the
``clientip_httpcode`` query.
In this example, the string **I_am__*clientip_httpcode*__pbxvbswl**
in the last field of the output indicates that process **602** (the second
field) runs the **clientip_httpcode** query.
Disk space used for tmp indexes
-------------------------------
To find out how much disk space is used for temporary database, you can run::
To find out how much disk space is used for temporary database indexes, you can
run::
$ lsof 2>/dev/null | grep /wherever/you/have/enough/space
hcpreques 602 sm txt REG 1,2 5301620171 26454 /wherever/you/have/enough/space/etilqs_rrlN0dgfFfwQg9E
......@@ -33,12 +32,16 @@ To find out how much disk space is used for temporary database, you can run::
hcpreques 603 sm txt REG 1,2 1256108032 26456 /wherever/you/have/enough/space/etilqs_7QxuTtMv8AtPYnw
hcpreques 603 sm 19u REG 1,2 1256108032 26456 /wherever/you/have/enough/space/etilqs_7QxuTtMv8AtPYnw
You will have to replace ``/wherever/you/have/enough/space`` by the tmp folder
you are using for the tmp database indexes.
You will have to replace ``/wherever/you/have/enough/space`` by the folder
you are using for the temporary database indexes (see :doc:`80_goodtoknow` for
details).
The 7th field will tell you how many bytes are actually used for this single
tmp database index. The 2nd field will tell you the pid of the process running
the query using this tmp index.
temporary database index. Be aware that each temporary index shows up twice in
this output, as it is opend twice by the process. The slight difference in size
is caused by the process writing into the index during ``lsof`` was running. The
2nd field will tell you the pid of the process running the query using this
temporary index.
BTW, you will **not** see the files containing the indexes in the filesystem,
and they will not be accounted for when using the ``df`` or ``du`` commands.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment