Skip to content

Instantly share code, notes, and snippets.

View dramaticlly's full-sized avatar

Hongyue/Steve Zhang dramaticlly

View GitHub Profile
@dramaticlly
dramaticlly / recover_from_s3_deletion_marker.sh
Created June 9, 2022 21:01
Recover Data from S3 DeletionMarker using BatchDeletion
#!/bin/bash
set -e
# S3 list object version command reference
# https://docs.aws.amazon.com/cli/latest/reference/s3api/list-object-versions.html
# S3 batch deletion CLI command reference
# https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-objects.html
@dramaticlly
dramaticlly / fix.sh
Created March 1, 2018 22:47
fix for ERROR: z.sh's datafile (...) is a directory.
cd ~
mkdir bin
cd bin
wget https://raw.githubusercontent.com/rupa/z/master/z.sh
echo "[ -f ~/bin/z.sh ] && source ~/bin/z.sh" >> ~/.zshrc
//AdmMessage.java
//====================================================================================
package common.messages;
import app_kvServer.model.Metadata;
import app_kvServer.model.Range;
public interface AdmMessage {
public enum StatusType {
import java.io.BufferedWriter;
import java.io.BufferedReader;
import java.io.FileWriter;
import java.io.FileReader;
import java.io.IOException;
import java.util.Scanner;
public class storage{
public class record{
String key;
@dramaticlly
dramaticlly / ox1fc0.log
Created December 5, 2016 02:28
As we can see here, the core 1 store with addr 0x1fc0 @cycle1236, directory receive the request and issue mem read request@1848, core 0 also trying to store @1913, the data reply from memory@2252, and directory send data reply to cache 0, @2269 the directory got GETM request from core 0 and now the owner is core 1, so request get forwarded to co…
zhang464@ug137:~/ece552/asst5/gem5$ grep 0x1fc0 dprintf.log
1236: system.l1_cntrl1: MSI-cache.sm:345: L1 - mandatoryQueue_in request of type ST for address [0x1fc0, line 0x1fc0] - No replacement necessary
1848: system.dir_cntrl0: MSI-dir.sm:222: Directory - requestQueue_in port: GETM request for address [0x1fc0, line 0x1fc0] from machine L1Cache-1
1848: system.dir_cntrl0: MSI-dir.sm:464: Directory - memQueue_out: send MEMORY_READ request for address [0x1fc0, line 0x1fc0] triggered from machine Directory-0
1913: system.l1_cntrl0: MSI-cache.sm:345: L1 - mandatoryQueue_in request of type ST for address [0x1fc0, line 0x1fc0] - No replacement necessary
2252: system.dir_cntrl0: MSI-dir.sm:261: Directory - memQueue_in port: MEMORY_READ for address [0x1fc0, line 0x1fc0] from machine L1Cache-1
2252: system.dir_cntrl0: MSI-dir.sm:351: Directory - responseNetwork_out: sendData sending DATA message type for address [0x1fc0, line 0x1fc0] w/ AckCount 0
2269: system.dir_cntrl0: MSI-dir.sm:222: Direct
zhang464@ug137:~/ece552/asst5/gem5$ bash runscons.sh debug -n 2 --l1d_size 8192B --l1d_assoc 4
debug ProtocolTrace
gem5 Simulator System. http://gem5.org
gem5 is copyrighted software; use the --copyright option for details.
gem5 compiled Dec 4 2016 18:07:56
gem5 started Dec 4 2016 18:39:50
gem5 executing on ug137.eecg
command line: ./build/ALPHA/gem5.opt --debug-flags=ProtocolTrace ./configs/example/ruby_random_test.py -n 2 --l1d_size 8192B --l1d_assoc 4
Global frequency set at 1000000000 ticks per second