JustKernel

Ray Of Hope

interrupt path xen

interrupt generated by the hardware. based on the static interrupt routing configuration provided by ACPI table at boot time, the corresponding link is selected. Interrupt is delivered to IO-APIC. Most modern days IO-APICs converts interrupt to msi i.e memory writes to specfic address in LAPIC name space . Each interrupt is mapped to a specific […]

Posted in Uncategorized, virtualization, Xen | No Comments

secure Xen throught XSM

XSM (Xen Security Modules) is security frame provided by Xen to secure Xen domains. The implementation of the framework lies within FLASK (Flux Advanced Security Kernel) policies. XSM is the policy definition entity while FLASK is an enforcement engine. Aspects of domain(s) that can be controlled: 1) interaction between domains (domU vs domU / dom0 […]

Posted in Uncategorized, virtualization, Xen | No Comments

Is Google – really worth it ??

Recently I attended an interview with Google and I didn’t clear and was given usual reasons. (yeah, you might think if I would have cleared I would not have written this blog post. May be you are true. But….. here is my brain dump). But the big questions that that always comes to my mind […]

Posted in Uncategorized | No Comments

Artificial Intelligence – The real intelligence behind it.

I have been doing research in the field of AI: going through various tutorials, studying the maths behind them and writing simple programs that uses different models to predict outcome. I have been disturbed by the hype and marketing that have been associated with the term. Some uninformed people or may be companies create this […]

Posted in Artificial Intelligence, Deep Learning, Machine Learning | No Comments

dynamic scheduler that can self-learn – 2

On thinking further (based on the earlier article: http://www.justkernel.com/Blogs/?p=322), I am not sure whether what I described is just an optimization or learning. I have a data and the prediction confirms to the set of the data that I have. That is just an optimization and not learning. But what I need is some model […]

Posted in Uncategorized | No Comments

dynamic scheduler that can self-learn

I want to make scheduler dynamic so that it can give maximum performance based on the different workload by adjusting its configuration. To start with a simple case I have chosen runqueu configuration. Problem Statement : Consider a simple usecase: The person who doesn’t have much knowledge about the scheduler will have a hard time […]

Posted in Xen | No Comments

Introduction of runqueue per cpupool for credit2 scheduler – Xen

Current infrastructure in Xen allows only a global runqueue flags that will be applicable to all the cpupools (schedulers, there is 1:1 correspondence between cpupools and scheduler instance running in a system). for eg. if we have selected configuration of runqueue as socket, then all the cpupools created will have the runqueue per cpupool. This […]

Posted in Xen | No Comments

basic programs to clear the concepts

Userspace and kernel space virtual address space division. TO understand the address space allocation between user space and kernel space I wrote this simple program. Kernel space: 10 int init_module(void) 11 { 12 void * kern_mem; 13 kern_mem = kmalloc(5, GFP_KERNEL); 14 printk(KERN_INFO “Hello world addr=%lx”, (unsigned long)kern_mem); 15 return 0; 16 } O/P : […]

Posted in Basic C | 1 Comment

braindump- memory corruption

Linux kernel 3.10 has somewhat dubious use of __GFP_WAIT which is more recent kernel has been replaced __GFP_RECLAIM and __GFP_DIRECT_RECLAIM which are more sensible . I have been debugging a customer issue where AMD GPU passhtrough for S9050 card is causing XenServer host running 3.10 kernel to crash but XenServer 7.x Tech Preview release with […]

Posted in debugging, Linux Kernel, Xen, Xen | No Comments

XSM-Flask / Xen Credit-2 scheduler

Below are the links for my talk at XenSummit 2016 Toronto on 1) XSM/Flask current architecture, its shortcomings and new approach. 2) Credit-2 scheduler benchmarks and comparative results with Credit-1. Xen Credit-2 Scheduler Performance Benchmarks XSM Flask Let me know in case of any queries. Anshul Makkar anshul_makkar@justkernel.com

Posted in Xen | No Comments