-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathremote_commands.txt
81 lines (55 loc) · 3.61 KB
/
remote_commands.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
sudo apt update
pip install gdown
gdown 1HEyNw4M453n0tnuaAm9nwaCiLydQYnpo
https://drive.google.com/file/d/1HEyNw4M453n0tnuaAm9nwaCiLydQYnpo/view?usp=sharing
https://drive.google.com/file/d/1HEyNw4M453n0tnuaAm9nwaCiLydQYnpo/view?usp=sharing
https://drive.google.com/file/d/1T-G9iPJ0L4hAt3U7FEig025B7SCxj6aX/view?usp=sharing
sudo apt install unzip nano
sudo apt install numactl
wget https://github.com/sharkdp/hyperfine/releases/download/v1.16.1/hyperfine_1.16.1_amd64.deb
sudo dpkg -i hyperfine_1.16.1_amd64.deb
unzip measurements.txt
git clone https://github.com/lehuyduc/1brc-simd.git
cd 1brc-simd
sudo lshw -short -C memory.
g++ -o test_copy_bandwidth copy_bandwidth.cpp -O3 -march=native -m64 -lpthread
./test_copy_bandwidth
rm main
g++ -o main main.cpp -O3 -std=c++17 -march=native -m64 -lpthread
time ./main measurements.txt
https://stackoverflow.com/questions/65312867/how-to-download-large-file-from-google-drive-from-terminal-gdown-doesnt-work
https://computingforgeeks.com/install-java-jdk-21-openjdk-21-on-ubuntu/
curl -s "https://get.sdkman.io" | bash
source "$HOME/.sdkman/bin/sdkman-init.sh"
sdk install java 21.0.1-graal
sudo apt-get install -y libz-dev
https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu-2204
https://stackoverflow.com/questions/77498786/unable-to-locate-package-dotnet-sdk-8-0
wget https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
rm packages-microsoft-prod.deb
sudo apt-get update
sudo apt-get install -y dotnet-host
sudo apt-get install -y dotnet-sdk-8.0
sudo apt-get update && \
sudo apt-get install -y aspnetcore-runtime-8.0
sudo apt install dotnet-sdk-8.0
sudo apt-get install zlib1g-dev
dotnet publish -c release -r linux-x64
cd bin/release/net8.0/linux-x64/publish/
hyperfine -w 1 -r 5 -- "./1brc /root/1brc/measurements.txt > log.txt"
[email protected]:~/1brc$ dotnet publish -c release -r linux-x64
MSBuild version 17.8.3+195e7f5a3 for .NET
Determining projects to restore...
All projects are up-to-date for restore.
/usr/share/dotnet/sdk/8.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Sdk.targets(1253,5): error NETSDK1151: The referenced project '../1brc/1brc.csproj' is a self-contained executable. A self-contained executable cannot be referenced by a non self-contained executable. For more information, see https://aka.ms/netsdk1151 [/root/1brc/Benchmarks/Benchmarks.csproj]
1brc -> /root/1brc/1brc/bin/Release/net8.0/linux-x64/1brc.dll
1brc -> /root/1brc/1brc/bin/Release/net8.0/linux-x64/publish/
Tests -> /root/1brc/Tests/bin/Release/net8.0/linux-x64/Tests.dll
Tests -> /root/1brc/Tests/bin/Release/net8.0/linux-x64/publish/
cd /root/1brc/1brc/bin/Release/net8.0/linux-x64/publish
time ./1brc /root/1brc-simd/measurements.txt > log.txt
curl -H "Authorization: Bearer ACCESS_TOKEN" https://www.googleapis.com/drive/v3/files/FILE_ID?alt=media -o FILE_NAME
curl -H "Authorization: Bearer ya29.a0AfB_byCZzLlYR13tySFa_LV6RaH0yB63oOZFOqZBiazA_6XELHcDk449VmYpttMx-Y8kl55xRP2PTbxWN4-eaRovVAvCBsB5H69-oUa1IVNzaO_giJnouQ2gQxzP0Vfxi2hpOu8Oczy5imTXNStPtWpu8gxS5aUhDzuVaCgYKARwSARASFQHGX2MiCRsDLPtlMkUlQHfClFaiWg0171" https://www.googleapis.com/drive/v3/files/1HEyNw4M453n0tnuaAm9nwaCiLydQYnpo?alt=media -o measurements.zip
curl -H "Authorization: Bearer ya29.a0AfB_byCZzLlYR13tySFa_LV6RaH0yB63oOZFOqZBiazA_6XELHcDk449VmYpttMx-Y8kl55xRP2PTbxWN4-eaRovVAvCBsB5H69-oUa1IVNzaO_giJnouQ2gQxzP0Vfxi2hpOu8Oczy5imTXNStPtWpu8gxS5aUhDzuVaCgYKARwSARASFQHGX2MiCRsDLPtlMkUlQHfClFaiWg0171" https://www.googleapis.com/drive/v3/files/1T-G9iPJ0L4hAt3U7FEig025B7SCxj6aX?alt=media -o measurements_10k_small.zip
numactl