examples/

directory
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 20, 2023 License: MIT

README

Various memr Examples

compression

  • Demonstrates how to read and compress memory with various algorithms
  • Supported formats: snappy, lz4, zlib, gzip
  • See also: decompressor

custom header

  • Demonstrates how to prepend a custom header to memory pages
  • Particularly useful if custom page handling is being performed (see also: page compression)

decompressor

  • Simple example taking a compressed input file and decompressing it using the specified algorithm
  • Supported input formats: snappy, lz4, zlib, gzip
  • See also: compression
  • Example showing how to perform page-level compression using memr
  • Note: this is not advisable, and the method defined in the compression example should be used instead

progress

  • Simple example showing how to enable/disable progress reporting during read

source

  • Demonstrates how to read from a specific memory source (/proc/kcore, /dev/crash, /dev/mem)
  • The alternative to this is to use memr.Probe(), which attempts to load a valid ready from any source

stream s3

  • Demonstrates how to read memory and stream it directly to an S3 bucket
  • This is particularly useful in AWS environments when disk space may be limited and network I/O is very high
  • A similar approach could be applied to other cloud environments using their respective SDKs

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL