Wednesday, December 11, 2013

“Everything You Wanted to Know about SR-IOV in Hyper-V” by John Howard

Very good articles on SRIOV by John Howard.

-----------------------------------------------------------------------------------------------------
Part 1 discusses emulated versus software devices, the pros and cons and constraints of each and why Microsoft is investing in SR-IOV.
-----------------------------------------------------------------------------------------------------
Part 2 discusses the SR-IOV standard, physical functions (PFs) virtual functions (VFs) and the hardware requirements to make SR-IOV even possible.
-----------------------------------------------------------------------------------------------------
Part 3 discusses device drivers and how they function in an SR-IOV environment as well as screenshots of an SR-IOV NIC within a Hyper-V VM.
-----------------------------------------------------------------------------------------------------
Part 4 discusses some of the low level necessary firmware and motherboard changes to make SR-IOV function and provides a pointer to an interesting presentation given 4 years ago at WinHEC 2008 by Jake Oshins that provides further insight into SR-IOV.
-----------------------------------------------------------------------------------------------------
Part 5 explains the IO path with SR-IOV enabled, covers SR-IOV configuration via the UI and a deeper dive into PowerShell.
-----------------------------------------------------------------------------------------------------
Part 6 discusses SR-IOV and Live Migration in detail. It covers the engineering challenge of making SR-IOV work with Live Migration (not trivial folks) and even includes a video that demonstrates a virtual machine with an SR-IOV NIC under load being Live Migrated. There’s even a link to a WinHEC 2006 presentation (told you we’ve been looking at this technology a while…)
-----------------------------------------------------------------------------------------------------
Part 7 discusses SR-IOV and how it works with the new inbox Windows Server 2012 NIC Teaming. Yes folks, you can team SR-IOV NICs in the guest.
-----------------------------------------------------------------------------------------------------
Part 8 discusses debugging SR-IOV and includes examples in PowerShell and covers troubleshooting through the Event Viewer.

Friday, November 8, 2013

Want to crash the system manually?

You have seen BSOD on windows system many times. But may wonder how to crash it manually. Here is the tool that can help you do it.

http://download.sysinternals.com/files/NotMyFault.zip
Note: This is not my application. It is owned by sysinternals.com

Interview Questions 2

How to find the middle node from a link list?

middle = last = head;

while( last!=NULL && last->next != NULL )
{
middle = middle->next;
last = last->next->next;
}

// here middle element is in the middle of list


How to count the number of on bits in the number?

count=0;
while( n>0 )
{
if( n & 1 )
{
count++;
}
n = n>>1;
}


How can you delete a node from a singly link list?
you are provided with only the pointer to node.


Save next node.
Copy all the data from the next node to the current node.
copy the next pointer from next node to the current node.
then delete the next node.

temp = node->next;
node->data = node->next->data;
node->next = node->next->next;
delte temp;

This would not work if the provided node is last element.