Important Sections Duplicated From Linux
file: /foundationdb/flow/platform.cpp
line 262: GetResidentMemoryUsage
Gets the current rssize for the current process
| #include <iostream> | |
| #include <cinttypes> | |
| #include <sys/types.h> | |
| #include <sys/user.h> | |
| #include <sys/param.h> | |
| #include <sys/resource.h> | |
| #include <sys/sysctl.h> | |
| #include <sys/fcntl.h> |
| diff --git a/Makefile b/Makefile | |
| index ab1ee72..79d44e9 100644 | |
| --- a/Makefile | |
| +++ b/Makefile | |
| @@ -4,7 +4,7 @@ ARCH := $(shell uname -m) | |
| TOPDIR := $(shell pwd) | |
| -ifeq ($(ARCH),x86_64) | |
| +ifeq ($(ARCH),aarch64) |
| (xenial)ackiosk@localhost:~/Documents/foundationdb$ make | |
| Checking hgVersion.h | |
| Compiling flow/version.cpp | |
| /usr/bin/g++ | |
| Archiving lib/libflow.a | |
| /usr/bin/g++ | |
| Linking bin/fdbserver | |
| Stripping bin/fdbserver | |
| !!! WARNING: DEPENDENCY ON NEWER LIBC DETECTED !!! | |
| !!! WARNING: UNKNOWN SHARED OBJECT DEPENDENCY DETECTED: ld-linux-aarch64.so.1 !!! |
| ./configure --enable-arm-neon=api --host=arm CFLAGS="-Os -fembed-bitcode -mios-version-min=11.0" LDFLAGS="-flto" CC="xcrun -sdk iphoneos clang -arch arm64" --enable-shared=no --enable-static=yes |
Arcan from the beginning has had good FreeBSD support. This is a guide for installing it on your FreeBSD system and additional tips for getting it configured for graphical acceleration without utilizing Xorg/X11. For the most part the build instructions just work as described on the project page and Wiki for Arcan.
The first thing which needs to be considered is setting up a FreeBSD system with compatible hardware. The main site makes reference to i965 Intel and Nvidia graphics drivers being the main ones tested. AMD GPUs theoretically should work but there are no promises in that regard, your mileage may vary. The machine I have used in this case has the following specs relevant to running Arcan is a [Dell Optiplex 990](http://i.dell.com/sites/doccontent/shared-content/data-sheets/en/Documents/optiplex-9
| ## foundationdb.conf | |
| ## | |
| ## Configuration file for FoundationDB server processes | |
| ## Full documentation is available at | |
| ## https://www.foundationdb.org/documentation/configuration.html#foundationdb-conf | |
| [general] | |
| restart_delay = 60 | |
| ## by default, restart_backoff = restart_delay_reset_interval = restart_delay | |
| # initial_restart_delay = 0 |
| using System; | |
| using System.Security; | |
| using System.Runtime.InteropServices; | |
| namespace consoletest | |
| { | |
| class Program | |
| { | |
| [DllImport("libc")] |
| [devfsrules_common=7] | |
| add path 'card[0-9]\*' mode 666 | |
| add path 'ums[0-9]\*' mode 666 |
| # Allow a user in the wheel group to query the smb0 device | |
| #perm smb0 0660 | |
| # Allow members of group operator to cat things to the speaker | |
| #own speaker root:operator | |
| #perm speaker 0660 | |
| perm /dev/dri/card0 0666 |