(I will later edit this first post to have all the info in the same place)
updated the server to:
root@buildserver:~ # freebsd-version -uk
11.0-RELEASE-p8
11.0-RELEASE-p8
- added kern.hz=100 in loader.conf
- enabled ssh root access: changed /etc/ssh/ssd_conf: PermitRootLogin = yes
and copied our pub-keys under root user .ssh dir
- installed pkgs: smartmontools, synth, ccache, tmux, bash, rsync
- added wrapper commands ccache32 and ccache64 in /root/bin
they are used to query and set option respectively for /ccache32 (i386) and /ccache64 (amd64), because of the non-standard location of ccache. Usage is the same as original ccache command.
- note also, that because of that I have added two files for synth:
/usr/local/etc/synth/GhostBSD-amd64-environment
/usr/local/etc/synth/GhostBSD-i386-environment
they are needed to make synth use the proper ccache location, based in synth profile name.
- loaded a couple of modules in rc.conf (coretemp, linux, linux64)
(linux support is needed to build linux pkgs)
- switched repo to latest (need synth > 1.66 because of bug while building lang/sbcl)
addressing this, because we are using a very large swap:
Code: Select all
# dmesg | grep warning
warning: total configured swap (33554432 pages) exceeds maximum recommended amount (32550960 pages).
warning: increase kern.maxswzone or reduce amount of swap.
Code: Select all
root@buildserver:~ # more /boot/loader.conf
kern.maxswzone=1200000k
root@buildserver:~ # sysctl kern.maxswzone
kern.maxswzone: 1228800000
root@buildserver:~ # gpart show -p
=> 40 1953525088 ada1 GPT (932G)
40 1024 ada1p1 freebsd-boot (512K)
1064 251658240 ada1p2 freebsd-swap (120G)
251659304 16777216 - free - (8.0G) <--------------------- hole
268436520 268435456 ada1p3 freebsd-ufs (128G)
536871976 1416653152 - free - (676G)
Code: Select all
root@buildserver:~ # smartctl -l selftest /dev/ada1
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-RELEASE-p8 amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 5848 -
# 2 Extended offline Completed without error 00% 5684 -
# 3 Extended offline Completed without error 00% 5516 -
# 4 Extended offline Completed without error 00% 5348 -
# 5 Extended offline Completed without error 00% 5180 -
root@buildserver:~ # smartctl -l selftest /dev/ada2
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-RELEASE-p8 amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 6016 -
# 2 Extended offline Completed without error 00% 5853 -
# 3 Extended offline Completed without error 00% 5685 -
# 4 Extended offline Completed without error 00% 5517 -
# 5 Extended offline Completed without error 00% 5349 -
root@buildserver:~ # smartctl -l selftest /dev/ada0
smartctl 6.5 2016-05-07 r4318 [FreeBSD 11.0-RELEASE-p8 amd64] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF READ SMART DATA SECTION ===
SMART Self-test Log not supported <------------------------<<---------------<<--------------<<-----------
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
5 Reallocated_Sector_Ct 0x0032 100 100 000 Old_age Always - 0
9 Power_On_Hours_and_Msec 0x0032 000 000 000 Old_age Always - 922780h+26m+14.020s
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 19
170 Available_Reservd_Space 0x0033 100 100 010 Pre-fail Always - 0
171 Program_Fail_Count 0x0032 100 100 000 Old_age Always - 0
172 Erase_Fail_Count 0x0032 100 100 000 Old_age Always - 0
174 Unexpect_Power_Loss_Ct 0x0032 100 100 000 Old_age Always - 19
184 End-to-End_Error 0x0033 100 100 090 Pre-fail Always - 0
187 Uncorrectable_Error_Cnt 0x000f 099 099 050 Pre-fail Always - 2646884
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 19
225 Host_Writes_32MiB 0x0032 100 100 000 Old_age Always - 2910140
226 Workld_Media_Wear_Indic 0x0032 100 100 000 Old_age Always - 65535
227 Workld_Host_Reads_Perc 0x0032 100 100 000 Old_age Always - 50
228 Workload_Minutes 0x0032 100 100 000 Old_age Always - 65535
232 Available_Reservd_Space 0x0033 100 100 010 Pre-fail Always - 0
233 Media_Wearout_Indicator 0x0032 099 099 000 Old_age Always - 0
241 Host_Writes_32MiB 0x0032 100 100 000 Old_age Always - 2910140
242 Host_Reads_32MiB 0x0032 100 100 000 Old_age Always - 2970749
249 NAND_Writes_1GiB 0x0013 100 100 000 Pre-fail Always - 23869
Code: Select all
root@buildserver:~ # diskinfo -t /dev/ada0
/dev/ada0 (SSD)
Transfer rates:
outside: 102400 kbytes in 0.291247 sec = 351592 kbytes/sec
middle: 102400 kbytes in 0.288381 sec = 355086 kbytes/sec
inside: 102400 kbytes in 0.274665 sec = 372818 kbytes/sec
root@buildserver:~ # diskinfo -t /dev/ada1
/dev/ada1 (HGST 7200 rpm)
Transfer rates:
outside: 102400 kbytes in 0.790371 sec = 129559 kbytes/sec
middle: 102400 kbytes in 0.874438 sec = 117104 kbytes/sec
inside: 102400 kbytes in 1.515178 sec = 67583 kbytes/sec
root@buildserver:~ # diskinfo -t /dev/ada2
/dev/ada2 (HGST 7200 rpm)
Transfer rates:
outside: 102400 kbytes in 0.770728 sec = 132861 kbytes/sec
middle: 102400 kbytes in 0.824977 sec = 124125 kbytes/sec
inside: 102400 kbytes in 1.373707 sec = 74543 kbytes/sec
Code: Select all
root@buildserver:~ # date
Sat Mar 25 14:28:55 UTC 2017
Code: Select all
root@buildserver:~/.ssh # cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ada1p2 none swap sw 0 0
/dev/ada1p3 / ufs rw 1 1
# distfiles: newfs -b 16k -f 64k, softupdates
/dev/ada1p4 /distfiles ufs rw,noatime 0 0
# ccache for amd64: newfs -b 4k -f 16k, softupdates
/dev/ada2p2 /ccache64 ufs rw,noatime 0 0
# ccache for i386: newfs -b 4k -f 16k, softupdates
/dev/ada2p3 /ccache32 ufs rw,noatime 0 0
#repositories: newfs -b 16k -f 128k, softupdates
/dev/ada2p4 /repositories ufs rw,noatime 0 0
#root-amd64, rooti386, ports, options: newfs -b 4k -f 32k, softupdates
/dev/ada2p5 /build ufs rw,noatime 0 0