Front Haul Interface Library first seed code contribution
[o-du/phy.git] / fhi_lib / app / run_lls-cu.sh
1 #! /bin/bash
2
3 #/******************************************************************************
4 #*
5 #*   Copyright (c) 2019 Intel.
6 #*
7 #*   Licensed under the Apache License, Version 2.0 (the "License");
8 #*   you may not use this file except in compliance with the License.
9 #*   You may obtain a copy of the License at
10 #*
11 #*       http://www.apache.org/licenses/LICENSE-2.0
12 #*
13 #*   Unless required by applicable law or agreed to in writing, software
14 #*   distributed under the License is distributed on an "AS IS" BASIS,
15 #*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 #*   See the License for the specific language governing permissions and
17 #*   limitations under the License.
18 #*
19 #*******************************************************************************/
20
21
22 ulimit -c unlimited
23 echo 1 > /proc/sys/kernel/core_uses_pid
24
25 grep Huge /proc/meminfo
26 huge_folder="/mnt/huge_bbu"
27 [ -d "$huge_folder" ] || mkdir -p $huge_folder
28 if ! mount | grep $huge_folder; then
29  mount none $huge_folder -t hugetlbfs -o rw,mode=0777
30 fi
31
32 ./lls-cu/bin/sample-lls-cu config_file_lls_cu.dat  0000:18:02.0 0000:18:02.1
33
34 umount $huge_folder
35 rmdir $huge_folder
36