-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from LLNL/release_0.0.2
Release 0.0.2
- Loading branch information
Showing
10 changed files
with
216 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
// the (cmake) configured options and settings for umap | ||
#ifndef _UMAP_UMAPCONFIG_H | ||
#define _UMAP_UMAPCONFIG_H | ||
#define UMAP_VERSION_MAJOR @umap_VERSION_MAJOR@ | ||
#define UMAP_VERSION_MINOR @umap_VERSION_MINOR@ | ||
#define UMAP_VERSION_PATCH @umap_VERSION_PATCH@ | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
add_subdirectory(libumaptest) | ||
add_subdirectory(umapcpu) | ||
# add_subdirectory(umapcpu) | ||
add_subdirectory(umapsort) | ||
add_subdirectory(umaptest) | ||
add_subdirectory(umapmillions) | ||
add_subdirectory(median) | ||
add_subdirectory(readload) | ||
add_subdirectory(uffd_test) | ||
add_subdirectory(churn) | ||
add_subdirectory(rwseq) | ||
# add_subdirectory(umaptest) | ||
# add_subdirectory(umapmillions) | ||
# add_subdirectory(median) | ||
# add_subdirectory(readload) | ||
# add_subdirectory(uffd_test) | ||
# add_subdirectory(churn) | ||
# add_subdirectory(rwseq) | ||
if (BUILD_FITS) | ||
add_subdirectory(FITS) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/bin/bash | ||
function free_mem { | ||
m=`grep MemFree /proc/meminfo | awk -v N=2 '{print $N}'` | ||
fm=$(((${m}/1024)/1024)) | ||
echo $fm GB Free | ||
} | ||
|
||
function drop_page_cache { | ||
echo "Dropping page cache" | ||
echo 3 > /proc/sys/vm/drop_caches | ||
} | ||
|
||
function disable_swap { | ||
echo "Disabling swap" | ||
swapoff -av | ||
} | ||
|
||
function set_readahead { | ||
fs=`mount | grep intel | cut -d " " -f 1` | ||
blockdev --setra $readahead $fs | ||
ra=`blockdev --getra $fs` | ||
echo "Read ahead set to $ra for $fs" | ||
} | ||
|
||
function amounttowaste { | ||
m=`grep MemFree /proc/meminfo | awk -v N=2 '{print $N}'` | ||
echo $m | ||
fm=$(((${m}/1024)/1024)) | ||
waste=$((${fm}-${memtoleave})) | ||
echo $fm GB Available, Wasting $waste GB | ||
} | ||
|
||
function setuptmpfs { | ||
if [ ! -d /mnt/tmpfs ]; then | ||
mkdir -p /mnt/tmpfs | ||
fi | ||
|
||
# Unmount / Reset of already mounted | ||
fs=`stat -f -c '%T' /mnt/tmpfs` | ||
|
||
if [ "$fs" = "tmpfs" ]; then | ||
echo "Resetting tmpfs" | ||
umount /mnt/tmpfs | ||
fi | ||
|
||
fs=`stat -f -c '%T' /mnt/tmpfs` | ||
if [ "$fs" != "tmpfs" ]; then | ||
if [ ! -d /mnt/tmpfs ]; then | ||
mkdir -p /mnt/tmpfs | ||
fi | ||
chmod go+rwx /mnt/tmpfs | ||
mount -t tmpfs -o size=600g tmpfs /mnt/tmpfs | ||
fs=`stat -f -c '%T' /mnt/tmpfs` | ||
echo "/mnt/tmpfs mounted as: $fs" | ||
else | ||
echo "Unable to reset /mnt/tmpfs, exiting" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function waste_memory { | ||
echo "Wasting $waste GB of memory" | ||
echo dd if=/dev/zero of=/mnt/tmpfs/${waste}GB bs=4096 count=$((${waste}*256*1024)) | ||
dd if=/dev/zero of=/mnt/tmpfs/${waste}GB bs=4096 count=$((${waste}*256*1024)) | ||
} | ||
|
||
memtoleave=$((64+6)) | ||
readahead=256 | ||
|
||
set_readahead | ||
disable_swap | ||
setuptmpfs | ||
drop_page_cache | ||
amounttowaste | ||
waste_memory | ||
|
||
for t in 128 64 32 16 | ||
do | ||
rm -f /mnt/intel/sort_perf_data | ||
drop_page_cache | ||
free_mem | ||
cmd="./umapsort --usemmap --directio -f /mnt/intel/sort_perf_data -p $(((96*1024*1024*1024)/4096)) -n 1 -b $(((64*1024*1024*1024)/4096)) -t $t" | ||
date | ||
echo $cmd | ||
time sh -c "$cmd" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,86 @@ | ||
#!/bin/bash | ||
function free_mem { | ||
m=`grep MemFree /proc/meminfo | awk -v N=2 '{print $N}'` | ||
fm=$(((${m}/1024)/1024)) | ||
echo $fm GB Free | ||
} | ||
|
||
function drop_page_cache { | ||
echo "Dropping page cache" | ||
echo 3 > /proc/sys/vm/drop_caches | ||
} | ||
|
||
function disable_swap { | ||
echo "Disabling swap" | ||
swapoff -av | ||
} | ||
|
||
function set_readahead { | ||
fs=`mount | grep intel | cut -d " " -f 1` | ||
blockdev --setra $readahead $fs | ||
ra=`blockdev --getra $fs` | ||
echo "Read ahead set to $ra for $fs" | ||
} | ||
|
||
function amounttowaste { | ||
m=`grep MemFree /proc/meminfo | awk -v N=2 '{print $N}'` | ||
echo $m | ||
fm=$(((${m}/1024)/1024)) | ||
waste=$((${fm}-${memtoleave})) | ||
echo $fm GB Available, Wasting $waste GB | ||
} | ||
|
||
function setuptmpfs { | ||
if [ ! -d /mnt/tmpfs ]; then | ||
mkdir -p /mnt/tmpfs | ||
fi | ||
|
||
# Unmount / Reset of already mounted | ||
fs=`stat -f -c '%T' /mnt/tmpfs` | ||
|
||
if [ "$fs" = "tmpfs" ]; then | ||
echo "Resetting tmpfs" | ||
umount /mnt/tmpfs | ||
fi | ||
|
||
fs=`stat -f -c '%T' /mnt/tmpfs` | ||
if [ "$fs" != "tmpfs" ]; then | ||
if [ ! -d /mnt/tmpfs ]; then | ||
mkdir -p /mnt/tmpfs | ||
fi | ||
chmod go+rwx /mnt/tmpfs | ||
mount -t tmpfs -o size=600g tmpfs /mnt/tmpfs | ||
fs=`stat -f -c '%T' /mnt/tmpfs` | ||
echo "/mnt/tmpfs mounted as: $fs" | ||
else | ||
echo "Unable to reset /mnt/tmpfs, exiting" | ||
exit 1 | ||
fi | ||
} | ||
|
||
function waste_memory { | ||
echo "Wasting $waste GB of memory" | ||
echo dd if=/dev/zero of=/mnt/tmpfs/${waste}GB bs=4096 count=$((${waste}*256*1024)) | ||
dd if=/dev/zero of=/mnt/tmpfs/${waste}GB bs=4096 count=$((${waste}*256*1024)) | ||
} | ||
|
||
memtoleave=$((64+6)) | ||
readahead=0 | ||
|
||
set_readahead | ||
disable_swap | ||
setuptmpfs | ||
drop_page_cache | ||
amounttowaste | ||
waste_memory | ||
|
||
for t in 128 64 32 16 | ||
do | ||
rm -f /mnt/intel/sort_perf_data | ||
drop_page_cache | ||
free_mem | ||
cmd="./umapsort --directio -f /mnt/intel/sort_perf_data -p $(((96*1024*1024*1024)/4096)) -n 1 -b $(((64*1024*1024*1024)/4096)) -t $t" | ||
date | ||
echo $cmd | ||
time sh -c "$cmd" | ||
done |