Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Commit

Permalink
update numa patch and related docs (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeyuqiang authored Jun 4, 2021
1 parent 350240e commit d131e4e
Show file tree
Hide file tree
Showing 2 changed files with 382 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/OAP-Developer-Guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,23 @@ Building specified OAP Module, such as `sql-ds-cache`, run:
```
$ sh $OAP_TOOLS_HOME/dev/compile-oap.sh --sql-ds-cache
```

## Enabling NUMA binding for PMem in Spark

### Rebuilding Spark packages with NUMA binding patch

When using PMem as a cache medium apply the [NUMA](https://www.kernel.org/doc/html/v4.18/vm/numa.html) binding patch [numa-binding-spark-3.1.1.patch](./numa-binding-spark-3.1.1.patch) to Spark source code for best performance.

1. Download src for [Spark-3.1.1](https://archive.apache.org/dist/spark/spark-3.1.1/spark-3.1.1.tgz) and clone the src from github.

2. Apply this patch and [rebuild](https://spark.apache.org/docs/latest/building-spark.html) the Spark package.

```
git apply numa-binding-spark-3.1.1.patch
```

3. Add these configuration items to the Spark configuration file $SPARK_HOME/conf/spark-defaults.conf to enable NUMA binding.

```
spark.yarn.numa.enabled true
```
Loading

0 comments on commit d131e4e

Please sign in to comment.