mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
correct documentation and update hardware.sh for macos
This commit is contained in:
parent
985091f5a2
commit
69b4f1b0a5
@ -155,27 +155,45 @@ echo
|
|||||||
echo "Benchmark complete. System info:"
|
echo "Benchmark complete. System info:"
|
||||||
echo
|
echo
|
||||||
|
|
||||||
echo '----Version, build id-----------'
|
if [ "${OS}" = "Darwin" ]
|
||||||
./clickhouse local --query "SELECT format('Version: {}, build id: {}', version(), buildId())"
|
then
|
||||||
./clickhouse local --query "SELECT format('The number of threads is: {}', value) FROM system.settings WHERE name = 'max_threads'" --output-format TSVRaw
|
echo '----Version, build id-----------'
|
||||||
./clickhouse local --query "SELECT format('Current time: {}', toString(now(), 'UTC'))"
|
./clickhouse local --query "SELECT format('Version: {}', version())"
|
||||||
echo '----CPU-------------------------'
|
sw_vers | grep BuildVersion
|
||||||
cat /proc/cpuinfo | grep -i -F 'model name' | uniq
|
./clickhouse local --query "SELECT format('The number of threads is: {}', value) FROM system.settings WHERE name = 'max_threads'" --output-format TSVRaw
|
||||||
lscpu
|
./clickhouse local --query "SELECT format('Current time: {}', toString(now(), 'UTC'))"
|
||||||
echo '----Block Devices---------------'
|
echo '----CPU-------------------------'
|
||||||
lsblk
|
sysctl hw.model
|
||||||
echo '----Disk Free and Total--------'
|
sysctl -a | grep -E 'hw.activecpu|hw.memsize|hw.byteorder|cachesize'
|
||||||
df -h .
|
echo '----Disk Free and Total--------'
|
||||||
echo '----Memory Free and Total-------'
|
df -h .
|
||||||
free -h
|
echo '----Memory Free and Total-------'
|
||||||
echo '----Physical Memory Amount------'
|
vm_stat
|
||||||
cat /proc/meminfo | grep MemTotal
|
echo '----Physical Memory Amount------'
|
||||||
echo '----RAID Info-------------------'
|
ls -l /var/vm
|
||||||
cat /proc/mdstat
|
echo '--------------------------------'
|
||||||
#echo '----PCI-------------------------'
|
else
|
||||||
#lspci
|
echo '----Version, build id-----------'
|
||||||
#echo '----All Hardware Info-----------'
|
./clickhouse local --query "SELECT format('Version: {}, build id: {}', version(), buildId())"
|
||||||
#lshw
|
./clickhouse local --query "SELECT format('The number of threads is: {}', value) FROM system.settings WHERE name = 'max_threads'" --output-format TSVRaw
|
||||||
echo '--------------------------------'
|
./clickhouse local --query "SELECT format('Current time: {}', toString(now(), 'UTC'))"
|
||||||
|
echo '----CPU-------------------------'
|
||||||
|
cat /proc/cpuinfo | grep -i -F 'model name' | uniq
|
||||||
|
lscpu
|
||||||
|
echo '----Block Devices---------------'
|
||||||
|
lsblk
|
||||||
|
echo '----Disk Free and Total--------'
|
||||||
|
df -h .
|
||||||
|
echo '----Memory Free and Total-------'
|
||||||
|
free -h
|
||||||
|
echo '----Physical Memory Amount------'
|
||||||
|
cat /proc/meminfo | grep MemTotal
|
||||||
|
echo '----RAID Info-------------------'
|
||||||
|
cat /proc/mdstat
|
||||||
|
#echo '----PCI-------------------------'
|
||||||
|
#lspci
|
||||||
|
#echo '----All Hardware Info-----------'
|
||||||
|
#lshw
|
||||||
|
echo '--------------------------------'
|
||||||
|
fi
|
||||||
echo
|
echo
|
||||||
|
@ -38,6 +38,18 @@ Alternatively you can perform benchmark in the following steps.
|
|||||||
wget https://builds.clickhouse.com/master/amd64/clickhouse
|
wget https://builds.clickhouse.com/master/amd64/clickhouse
|
||||||
# For aarch64:
|
# For aarch64:
|
||||||
wget https://builds.clickhouse.com/master/aarch64/clickhouse
|
wget https://builds.clickhouse.com/master/aarch64/clickhouse
|
||||||
|
# For powerpc64le:
|
||||||
|
wget https://builds.clickhouse.com/master/powerpc64le/clickhouse
|
||||||
|
# For freebsd:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd/clickhouse
|
||||||
|
# For freebsd-aarch64:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd-aarch64/clickhouse
|
||||||
|
# For freebsd-powerpc64le:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd-powerpc64le/clickhouse
|
||||||
|
# For macos:
|
||||||
|
wget https://builds.clickhouse.com/master/macos/clickhouse
|
||||||
|
# For macos-aarch64:
|
||||||
|
wget https://builds.clickhouse.com/master/macos-aarch64/clickhouse
|
||||||
# Then do:
|
# Then do:
|
||||||
chmod a+x clickhouse
|
chmod a+x clickhouse
|
||||||
```
|
```
|
||||||
|
@ -20,9 +20,21 @@ toc_title: "\u30CF\u30FC\u30C9\u30A6\u30A7\u30A2\u8A66\u9A13"
|
|||||||
<!-- -->
|
<!-- -->
|
||||||
|
|
||||||
# For amd64:
|
# For amd64:
|
||||||
wget https://clickhouse-builds.s3.yandex.net/0/00ba767f5d2a929394ea3be193b1f79074a1c4bc/1578163263_binary/clickhouse
|
wget https://builds.clickhouse.com/master/amd64/clickhouse
|
||||||
# For aarch64:
|
# For aarch64:
|
||||||
wget https://clickhouse-builds.s3.yandex.net/0/00ba767f5d2a929394ea3be193b1f79074a1c4bc/1578161264_binary/clickhouse
|
wget https://builds.clickhouse.com/master/aarch64/clickhouse
|
||||||
|
# For powerpc64le:
|
||||||
|
wget https://builds.clickhouse.com/master/powerpc64le/clickhouse
|
||||||
|
# For freebsd:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd/clickhouse
|
||||||
|
# For freebsd-aarch64:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd-aarch64/clickhouse
|
||||||
|
# For freebsd-powerpc64le:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd-powerpc64le/clickhouse
|
||||||
|
# For macos:
|
||||||
|
wget https://builds.clickhouse.com/master/macos/clickhouse
|
||||||
|
# For macos-aarch64:
|
||||||
|
wget https://builds.clickhouse.com/master/macos-aarch64/clickhouse
|
||||||
# Then do:
|
# Then do:
|
||||||
chmod a+x clickhouse
|
chmod a+x clickhouse
|
||||||
|
|
||||||
|
@ -36,6 +36,18 @@ chmod a+x ./hardware.sh
|
|||||||
wget https://builds.clickhouse.com/master/amd64/clickhouse
|
wget https://builds.clickhouse.com/master/amd64/clickhouse
|
||||||
# For aarch64:
|
# For aarch64:
|
||||||
wget https://builds.clickhouse.com/master/aarch64/clickhouse
|
wget https://builds.clickhouse.com/master/aarch64/clickhouse
|
||||||
|
# For powerpc64le:
|
||||||
|
wget https://builds.clickhouse.com/master/powerpc64le/clickhouse
|
||||||
|
# For freebsd:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd/clickhouse
|
||||||
|
# For freebsd-aarch64:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd-aarch64/clickhouse
|
||||||
|
# For freebsd-powerpc64le:
|
||||||
|
wget https://builds.clickhouse.com/master/freebsd-powerpc64le/clickhouse
|
||||||
|
# For macos:
|
||||||
|
wget https://builds.clickhouse.com/master/macos/clickhouse
|
||||||
|
# For macos-aarch64:
|
||||||
|
wget https://builds.clickhouse.com/master/macos-aarch64/clickhouse
|
||||||
# Then do:
|
# Then do:
|
||||||
chmod a+x clickhouse
|
chmod a+x clickhouse
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user