Skip to content

Commit 9f07067

Browse files
authored
Merge pull request #699 from lizwar/glibc-with-LSE
Glibc with lse_editorial review complete_KB to sign off
2 parents c80e1a9 + 1561600 commit 9f07067

File tree

6 files changed

+13
-12
lines changed

6 files changed

+13
-12
lines changed

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/_index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Use glibc with Large System Extensions (LSE) to improve the performance of workloads on Arm servers
2+
title: Learn about glibc with Large System Extensions (LSE) for performance improvement
33

44
minutes_to_complete: 60
55

@@ -12,6 +12,7 @@ learning_objectives:
1212

1313
prerequisites:
1414
- An Arm based instance from a cloud service provider.
15+
- Review the learning path on [LSE](/learning-paths/servers-and-cloud-computing/lse/)
1516

1617
author_primary: Ying Yu, Arm
1718

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/_review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
review:
1414
- questions:
1515
question: >
16-
You can use LSE on Non-Arm servers?
16+
Can you use LSE on Non-Arm servers?
1717
answers:
1818
- "Yes"
1919
- "No"

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/build_glibc_with_lse.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ You have now successfully built glibc from source without LSE.
5050

5151
Now lets look at how you can build it with LSE support.
5252

53-
## Build glibc With LSE
53+
## Build glibc with LSE
5454
To build glibc with LSE, you should add `CFLAGS` and `CXXFLAGS` to the configure command.
5555

56-
You can do this one of two ways. One way is to use "-mcpu=native" which tells the compiler to detect the architecture/micro-architecture of your machine. The other way is to pass the exact architecture option of your machine to the compiler using "-mcpu=neoverse-n2+lse"
56+
You can do this one of two ways. One way is to use "-mcpu=native" which tells the compiler to detect the architecture/micro-architecture of your machine. The other way is to pass the exact architecture option of your machine to the compiler using "-mcpu=neoverse-n2+lse".
5757

58-
Both ways to configure are shown below:
58+
Both ways are shown below:
5959

6060
```bash
6161
sudo bash ~/glibc/configure --prefix=/usr --disable-werror CC=gcc-10 CXX=g++-10 CFLAGS="-mcpu=native -O3" CXXFLAGS="-mcpu=native -O3"

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/compare_result.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ layout: "learningpathall"
1010
You can run the mongodb benchmark using Glibc with LSE and NoLSE and compare the results. This will give you an idea of the performance gained by using Glibc with LSE.
1111

1212
## Result with No-LSE
13-
Launch MongoDB with Glibc without LSE and obtain benchmark result.
13+
Launch MongoDB with Glibc but without LSE and obtain a benchmark result.
1414
The output will look similar to:
1515

1616
```output
@@ -62,7 +62,7 @@ The output will look similar to:
6262
The overall throughput (operations/sec) is 6662.1275371047195 with No-LSE Glibc.
6363

6464
## Result with LSE
65-
Launch MongoDB again, this time with Glibc with LSE and obtain benchmark result.
65+
Launch MongoDB again, this time with Glibc with LSE and obtain a benchmark result.
6666

6767
The output will look similar to:
6868

@@ -113,6 +113,6 @@ The output will look similar to:
113113
[SCAN], Return=OK, 1499682
114114
```
115115
The overall throughput (operations/sec) is 6871.605426919102 when using Glibc with LSE.
116-
In this case you can get around 3.14% performance uplift by using Glibc with LSE.
116+
In this case, you get around 3.14% performance uplift by using Glibc with LSE.
117117

118118

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/mongo_benchmark.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ You can now benchmark the performance of MongoDB following the `run` command:
9696
Replace `mongo_ip` and `mongo_port` in the command above with the IP address and port number of the machine you are running MongoDB on.
9797

9898
{{% notice Note %}}
99-
Please ensure that you have sufficient disk space available!
99+
Please ensure that you have sufficient disk space available (60GB as a minimum requirement).
100100
{{% /notice %}}
101101

102102
You can see the performance data after the `run` command execution is finished.

content/learning-paths/servers-and-cloud-computing/glibc-with-lse/mongo_start.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@ logappend=true
4646
bind_ip=0.0.0.0
4747
port=27017
4848
```
49-
You can now run MongoDB as shown:
49+
You can now run MongoDB as shown below:
5050

5151
```console
5252
cp /usr/lib/aarch64-linux-gnu/libcrypt.so ~/glibc-2.32_build_install/build/crypt/
5353
~/glibc-2.32_build_install/build/testrun.sh ~/mongo/build/install/bin/mongod -f ~/mongodb-5.3.2/mongodb.conf --wiredTigerCacheSizeGB=20
5454
```
5555

56-
Confirm that the workload mongodb runs is with the newly built glibc with LSE:
56+
Confirm that the workload mongodb runs with the newly built glibc with LSE:
5757

58-
First, get the pid with the following command.
58+
First, get the pid with the following command:
5959
```console
6060
ps -ef | grep mongo
6161
```

0 commit comments

Comments
 (0)