provide follow features implementation:
[o-du/phy.git] / fhi_lib / app / run_o_du.sh
index 4f6813c..fccf846 100644 (file)
@@ -1,39 +1,31 @@
-#! /bin/bash
-
-#/******************************************************************************
-#*
-#*   Copyright (c) 2019 Intel.
-#*
-#*   Licensed under the Apache License, Version 2.0 (the "License");
-#*   you may not use this file except in compliance with the License.
-#*   You may obtain a copy of the License at
-#*
-#*       http://www.apache.org/licenses/LICENSE-2.0
-#*
-#*   Unless required by applicable law or agreed to in writing, software
-#*   distributed under the License is distributed on an "AS IS" BASIS,
-#*   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-#*   See the License for the specific language governing permissions and
-#*   limitations under the License.
-#*
-#*******************************************************************************/
-
-ulimit -c unlimited
-echo 1 > /proc/sys/kernel/core_uses_pid
-
-grep Huge /proc/meminfo
-huge_folder="/mnt/huge_bbu"
-[ -d "$huge_folder" ] || mkdir -p $huge_folder
-if ! mount | grep $huge_folder; then
- mount none $huge_folder -t hugetlbfs -o rw,mode=0777
-fi
-
-#40G
-./build/sample-app ./usecase/mu3_100mhz/config_file_o_du.dat  0000:d8:02.0 0000:d8:02.1
-
-#25G
-#./build/sample-app ./usecase/mu0_10mhz/12/config_file_o_du.dat  0000:af:02.0 0000:af:02.1
-
-umount $huge_folder
-rmdir $huge_folder
-
+#! /bin/bash\r
+\r
+#******************************************************************************\r
+#\r
+#   Copyright (c) 2019 Intel.\r
+#\r
+#   Licensed under the Apache License, Version 2.0 (the "License");\r
+#   you may not use this file except in compliance with the License.\r
+#   You may obtain a copy of the License at\r
+#\r
+#       http://www.apache.org/licenses/LICENSE-2.0\r
+#\r
+#   Unless required by applicable law or agreed to in writing, software\r
+#   distributed under the License is distributed on an "AS IS" BASIS,\r
+#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+#   See the License for the specific language governing permissions and\r
+#   limitations under the License.\r
+#\r
+#******************************************************************************/\r
+\r
+\r
+ulimit -c unlimited\r
+echo 1 > /proc/sys/kernel/core_uses_pid\r
+\r
+\r
+#40G\r
+#./build/sample-app ./usecase/mu3_100mhz/config_file_o_du.dat  0000:d8:02.0 0000:d8:02.1\r
+\r
+#25G\r
+./build/sample-app ./usecase/mu0_5mhz/config_file_o_du.dat  0000:22:02.0  0000:22:02.1\r
+#./build/sample-app ./usecase/mu1_100mhz/config_file_o_du.dat  0000:18:02.0  0000:18:02.1\r