Skip to content

Instantly share code, notes, and snippets.

# Ubuntu 24.04 not yet supported: https://github.com/intel/linux-npu-driver/releaseshttps://github.com/intel/linux-npu-driver/releases
FROM ubuntu:22.04
# Dependencies
RUN : \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
--no-install-recommends \
libtbb12 \
python3-venv \
@dmaasland
dmaasland / tweaks.vmx
Created April 19, 2022 13:02
Settings to make VM's on VMware Fusion hun halfway decent
# Put these in your VM VMX file
mainmem.backing = "swap" # Disable swap
MemTrimRate = "0" # Disable returning unused memory
sched.mem.pshare.enable = "FALSE" # Disable page sharing
prefvmx.useRecommendedLockedMemSize = "TRUE" # Force memory to be pre-allocated on host
scsi0.virtualDev = "pvscsi" # Fasted disk i/o subsystem (requires driver off pvscsi.flp floppy disk image)
scsi0:0.virtualSSD = 1 # If running off an SSD
MemAllowAutoScaleDown = "FALSE"
ulm.disableMitigations="TRUE" # Disable side-channel mitigations
ethernet0.virtualDev = "vmxnet3" # Use paravirtualized network adapter
@dmaasland
dmaasland / gist:f621a5b01d6eda899946ac053eaf03ad
Created June 28, 2021 13:43 — forked from wpivotto/gist:3993502
Maximize VMWare images performance
Insert the following code into the *.VMX file:
sched.mem.pshare.enable = "FALSE"
mainMem.useNamedFile = "FALSE"
prefvmx.minVmMemPct = "100"
prefvmx.useRecommendedLockedMemSize = "TRUE"
mainMem.partialLazySave = "FALSE"
mainMem.partialLazyRestore = "FALSE"
priority.grabbed = "high"
priority.ungrabbed = "normal"
$Source = @"
using System;
using System.Runtime.InteropServices;
namespace ProcDump {
public static class DbgHelp {
[DllImport("Dbghelp.dll")]
public static extern bool MiniDumpWriteDump(IntPtr hProcess, uint ProcessId, IntPtr hFile, IntPtr DumpType, IntPtr ExceptionParam, IntPtr UserStreamParam, IntPtr CallbackParam);
}
}