Re: Difference between major page fault and minor page fault

2009-11-10 Thread Shameem Ahamed
. Shailesh Jain On Mon, Nov 9, 2009 at 7:08 AM, Ed Cashin wrote: Shameem Ahamed writes: Hi, Can anyone explain the difference between major and minor page faults. As far as I know, major page fault follows a disk access to retrieve the data. Minor page fault occurs mainly for COW pages

Re: Difference between major page fault and minor page fault

2009-11-10 Thread Shameem Ahamed
- Original Message From: Shameem Ahamed shameem.aha...@yahoo.com To: shailesh jain coolworldofsh...@gmail.com; Ed Cashin ecas...@coraid.com Cc: kernelnewbies@nl.linux.org Sent: Tue, November 10, 2009 6:00:20 PM Subject: Re: Difference between major page fault and minor page fault

Difference between major page fault and minor page fault

2009-11-09 Thread Shameem Ahamed
Hi, Can anyone explain the difference between major and minor page faults. As far as I know, major page fault follows a disk access to retrieve the data. Minor page fault occurs mainly for COW pages. Is there any other instances other than COW, where there will be a minor page fault. Which

Virtual Memory Doubt

2009-11-02 Thread Shameem Ahamed
Hi, I know that When a process is created virtual address is allocated for the process, and the virtual addresses will be dynamically created upon request. How this virtual memory is allocated by kernel. Is it random ?. Can two process have same virtual memory addresses?. Regards, Shammi

Whats is the operator ##

2009-10-28 Thread Shameem Ahamed
Hi Friends, I found the below macro definition in include/linux/const.h #define _AC(X,Y) (X##Y) What exactly this means, as far as i know there is no operator by the symbol ## Can anyone please help me ?. Regards, Shameem -- To unsubscribe from this list: send an email with

Doubt regarding page traversal

2009-10-23 Thread Shameem Ahamed
Hi Friends, Please help me to figure out some basic concepts in MM. From the books, i learned that VMA to PA translation consists of traversing the full page directory, which consists of Global Directory, Middle Directory and Page Table. I have also read that, VMA to PA translation is done

buffer and page retrievel

2009-09-27 Thread Shameem Ahamed
Hi All, I am going through the kernel source to understand the buffer hit-miss and page fault logic . What I found is, kernel first tries to locate the data in the cpu lrus , and will move the buffer to the top of the lru array, if the buffer is found in the lru. If the buffer is not found,

Kernel Cache Hit accouting

2009-09-24 Thread Shameem Ahamed
Hi, I was trying to implement a system tap script to measure the performance of buffer (Primary Ram, not the processor cache). When i went through the kernel code, i could see that kernel will call the function __getblk to check whether the data is in buffer or not. If it is not able to find

Re: Ip address assignment

2009-09-08 Thread Shameem Ahamed
Please check, whether you have dhcp client running or not. dhcp will assign ips automatically. If so, disable dhcp. Shammi From: Vivek Subbarao viv...@chelsio.com To: kernelnewbies@nl.linux.org Sent: Tuesday, September 8, 2009 1:40:48 PM Subject: Ip address assignment Hi, The ip

Re: Signal problem

2009-09-05 Thread Shameem Ahamed
Hello Laurentziu Dascalu Except SIGKILL and SIGSTOP, you can use custom signal handler function, which will serve your problem. atexit can be used, if you want to do some specific tasks just before exiting the program. You can pass a function pointer to atexit. Shameem - Original

Doubt regarding signal handling

2009-08-29 Thread Shameem Ahamed
Hello Friends, I am new to this ML. I have one doubt regarding the signal handling mechanism in Kernel. If a process receives more than one different signals (eg SIGUSR1 and SUGUSR2 or any two other signals) simultaneously what is the default action from kernel. Which handler will execute