Re: difference between DECLARE_* and DEFINE_* macro namespaces ?

2022-09-26 Thread Rik van Riel
On Wed, 2022-09-21 at 13:33 -0600, jim.cro...@gmail.com wrote: > difference between DECLARE_* and DEFINE_* macro namespaces ? I am not sure there is a clear difference any more nowadays. Both DECLARE_* and DEFINE_* seem to be used for both defining a type and declaring an (often initialized)

mail server issues fixed?

2022-09-02 Thread Rik van Riel
Hello, it looks like a security update removed some compatibility with older mail server config settings, and email here broke for a couple of days. Just enough spam and system mail made it through that I didn't notice until today. Things should be fixed again now. Apologies for the

Re: How to free a page table page

2021-04-05 Thread Rik van Riel
On Tue, 2021-04-06 at 00:39 +0900, Wonkyo Choe wrote: > 1. In x86, are all page-table pages released at the end of > termination > by using free_pgtables()? > 2. In x86, a page-table page can be freed when there is no entry? In > other words, does the Linux kernel > release a page-table page on

Re: get_user_pages and pinning

2021-01-03 Thread Rik van Riel
On Sun, 2021-01-03 at 12:54 -0500, Sadanand Warrier wrote: > > So the question is what should happen if the memory isn't actually > allocated. Should get_user_pages check? > It doesn't seem to be doing so. Can it? If the driver needs the memory to be allocated, why not use the FOLL_POPULATE

Re: [Scheduler] CFS - What happens to each task's slice if nr_running * min_granularity > sched_latency?

2020-04-06 Thread Rik van Riel
On Thu, 2020-04-02 at 22:10 -0400, Evan T Mesterhazy wrote: > Here's the code for calculating an individual process's slice. It > looks like the weighting formula is used here regardless of whether > the period has been expanded. > If that's the case, doesn't that mean that some processes will

Re: Best way to debug an invalid opcode

2020-03-19 Thread Rik van Riel
On Thu, 2020-03-19 at 10:22 +0100, Karaoui mohamed lamine wrote: > Hi list, > > I am currently encountering a kernel oops that indicate an "invalid > opcode: [#1] SMP" > > I am working on this project https://github.com/GiantVM/Linux-DSM > > The full log of the bug can be found here: >

Re: Introduction & Query on Newbie Website Status

2020-02-03 Thread Rik van Riel
On Mon, 2020-02-03 at 19:49 +, Jack Winch wrote: > > The web site seems to be up now, without me having > > made any changes at all. Were you getting timeouts > > (routing issues?) or web server errors? > > > > Using the Chrome browser, I was getting various errors relating to > DNS. But,

Re: Introduction & Query on Newbie Website Status

2020-02-02 Thread Rik van Riel
On Sun, 2020-02-02 at 23:26 +, Anuz Pratap Singh Tomar wrote: > > > > > > > Lastly, the Kernel Newbies website seems to be unavailable at the > > moment (Google last cached the site on 31 Jan 2020 01:49:1 UTC). > > Any > > idea when it will be available again? > > > > Rik maintains the

Re: Try/catch for modules?

2019-10-18 Thread Rik van Riel
On Fri, 2019-10-18 at 12:43 -0300, Martin Galvan wrote: > El jue., 17 oct. 2019 a las 19:13, Valdis Klētnieks > () escribió: > > For starters, the *correct* in-kernel way to deal with this is: > > if (!ptr) { > > printk("You blew it!\n"); > > goto

Re: Software Prefetching using Machine learning

2019-10-10 Thread Rik van Riel
On Thu, 2019-10-10 at 11:10 +0900, Irfan Ullah (울라 이르판) wrote: > Thank you for the responses. > It is not my assignment. Actually, we have initiated a project based > on the idea "incorporating artificial intelligence in the linux > kernel to increase its performance". That is an interesting

Re: vmalloc_to_page is contiguous ?

2019-03-18 Thread Rik van Riel
On Mon, 2019-03-18 at 12:55 +0200, Ranran wrote: > Hello, > > Does vmalloc_to_page() returns contiguous physical memory ? > I ask becuase I see that its return value is used for DMA and DMA > uses > contiguous memory. > see here: >

Re: First Patch: Memory Limit Exceeded

2018-08-26 Thread Rik van Riel
On Sun, 2018-08-26 at 20:14 +0530, Anika Murarka wrote: > Hi, > I am Anika , and I have been trying to submit my first patch for > Linux Kernel. > I had completed till the make command and rebooted my vm after that. > While rebooting the following message popped :- " End kernel panic > not

Re: How to change page permission from inside the kernel?

2018-07-06 Thread Rik van Riel
On Fri, 2018-07-06 at 21:29 +0200, Ahmed Soliman wrote: > > 2) And why from inside the kernel? > > Because this needs to be done from inside KVM. > > Note: I am aware that this won't be effective against rootkits that > live in userspace, rootkits that target kernel dynamic data, files on >

Re: wiki & email upgrades

2018-01-03 Thread Rik van Riel
I would be happy to add you to the EditorsGroup for tr.kernelnewbies.org What is your account name on tr.kernelnewbies.org? On 1/2/18, 7:42 AM, "Ozgur" <oz...@goosey.org> wrote: 02.01.2018, 18:34, "Jalus Bilieyich" <countola...@gmail.com>: &

Re: wiki & email upgrades - archives

2018-01-03 Thread Rik van Riel
ne so it is more specific than "Re: Contents of Kernelnewbies digest..." Today's Topics: 1. (Rik van Riel) 2. Re: wiki & email upgrades (Jalus Bilieyich) 3. Re: wiki & email upgrades (Ozgur) ------ Message:

wiki & email upgrades

2018-01-01 Thread Rik van Riel
Hello, As you may have noticed (if you weren't too busy celebrating the holidays), I have upgraded kernelnewbies.org to a new version of the wiki, and am also upgrading the email system. This email is both an announcement, and a test of the new email configuration. If you notice lingering

Re: Device driver over network

2017-12-18 Thread Rik van Riel
On Mon, 2017-12-18 at 16:30 -0500, Max Ruttenberg wrote: > Hi all, > > I have two compute nodes on a machine that are both running embedded > Linux. The nodes are connected to each other over Ethernet. > > The both have an i2c bus. Node A has a thermal sensor. Node B has > three fans. > > Right

Re: Kernel schedules kernel tasks on isolated cpus, SCHED_FIFO prevents kernel tasks from running

2017-06-28 Thread Rik van Riel
On Wed, 2017-06-28 at 08:39 -0500, Andrei Hurynovich wrote: > Hi. > > We are trying to build realtime(-ish) system based on rhel6(kernel  > 2.6.32-642.1.1.el6.x86_64). > > We used isolcpus to remove some cpus from process  > scheduling(isolcpus=2-19 nohz_full=2-19 rcu_nocbs=2-19). > > We spin

Re: sched_wakeup_granularity_ns in CFS correctly designed or not?

2017-06-11 Thread Rik van Riel
On Sun, 2017-06-11 at 22:26 +0530, Rohith R wrote: > > OK, let me get this straight: > > 1) Your application has a deadline. > > 2) You do not tell the kernel of that deadline. > > 3) You want to know if the kernel will keep the > >    promise you never told it about? > >   > Yes. All I am saying

Re: sched_wakeup_granularity_ns in CFS correctly designed or not?

2017-06-11 Thread Rik van Riel
On Sun, 2017-06-11 at 21:38 +0530, Rohith R wrote: > Sure, CFS does not have any deadlines at all. But I am trying to > measure its performance w.r.t to some workloads having some periods > and deadlines. So in that case will the tasks having deadline of < > 2.5 ms always miss the deadline ? OK,

Re: sched_wakeup_granularity_ns in CFS correctly designed or not?

2017-06-11 Thread Rik van Riel
On Sun, 2017-06-11 at 11:15 +0530, Rohith R wrote: > Hi, > > I was working on the Linux CFS scheduler and came across this > tuneable parameter called `sched_wakeup_granularity_ns`. The use of > this goes as follows as described in [this paper](http://rouskas.csc. >

Re: Is vnode number also limit system-wide number of open file?

2017-05-31 Thread Rik van Riel
On Wed, 2017-05-31 at 21:37 +0800, Yubin Ruan wrote: > I notice that there is a  > > unsigned long i_ino; > > in definition of `struct inode' [1], which is the virtual filesystem > inode. > Does that mean "inode number" and is it used for indexing in the > system-wide > inode

Re: [mm subsystem] A question about function page_table_range_init_count()

2017-03-21 Thread Rik van Riel
On Wed, 2017-03-15 at 22:12 +0800, Hao Lee wrote: > Hi, all > > I encounter a problem when I read the source code of kernel 4.9.9. > > In arch/x86/mm/init_32.c, at line 125 [1], there is a function named > page_table_range_init_count(...). I have analyzed some codes and find > its two parameters

Re: linux-mm mailing list

2017-01-06 Thread Rik van Riel
On Fri, 2017-01-06 at 16:19 +0100, Johannes Thoma wrote: > Hi Kernel hackers, > > I have a proposal for an improvement of the CMA allocator (just about > 5  > lines of code to make it more robust). I would like to send it to > the linux-mm mailing list (linux...@kvack.org according to >

Re: Is kernel Bugzilla a good way to start?

2016-12-22 Thread Rik van Riel
On Thu, 2016-12-22 at 19:21 +0300, Dennis Semakin wrote: > > Hi everybody.  > I just thought that may be it will be quicker to start to develop for > kernel. It can be, but one word of caution.  Sometimes bugs get fixed independently from the bug report, and the bug described in the bug report

Re: Add me to EditorGroup on the wiki?

2016-12-20 Thread Rik van Riel
ty. kind regards, Rik van Riel -- All Rights Reversed. signature.asc Description: This is a digitally signed message part ___ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Re: userspace app receive SIGSEGV, but not is crash, why?

2016-10-11 Thread Rik van Riel
On Mon, 2016-10-10 at 22:36 +0800, Lucha Chen wrote: > Dear All, >   userspace app receive SIGSEGV, but not crash, why? >   The mtk kernel log is : > <4>[67330.976640] -(6)[25390:ndroid.systemui][25390:ndroid.systemui] > sig 11 to [25390:ndroid.systemui] stat=R > The userspace application can

Re: Web Forum Registration Failure

2016-10-03 Thread Rik van Riel
On Sun, 2016-08-28 at 23:28 -0600, Jonathan Villatoro wrote: > On Sun, Aug 28, 2016 at 7:25 PM, n...@nnbits.org > wrote: > > Hello everyone, > > > > I tried to register on Kernelnewbies Web Forum, but got this > > message: > > > > You did not provide the correct code

Re: In SMP system, is there any api to disable IRQ for all CPUs?

2015-10-01 Thread Rik van Riel
On 10/01/2015 11:49 AM, loody wrote: > hi all: > is there any kernel API can let IRQ disable for all CPU in SMP system > for a while? > I just need it for a experiment on my module. > > such as: > --> disable SMP all cpu IRQ > OOO ---> no interrupt happen > OOO ---> no interrupt

Re: How to understand processor in SMP and UP?

2015-07-20 Thread Rik van Riel
On 07/19/2015 11:43 PM, Nan Xiao wrote: Hi all, Per my understanding, the processor in SMP and UP should be a logic CPU, not a physical CPU. If the physical CPU contains 2 cores, and every core contains 2 hardware threads, then the processor should stands for hardware thread. Is my

Re: Kernel contributions from organisations and individual privacy

2015-06-15 Thread Rik van Riel
On 06/15/2015 07:08 PM, Jeff Haran wrote: Jeff Haran jeff.ha...@citrix.com writes: What is the downside to a large company for violating GPL? Losing all rights to the software in question forever is probably the largest downside. If we talk about the Linux kernel (as I assume we do in this

Re: Kernel contributions from organisations and individual privacy

2015-06-13 Thread Rik van Riel
On 06/12/2015 07:29 PM, Jeff Haran wrote: What is the downside to a large company for violating GPL? They are likely to not get sued in the first place. If they are they can delay using court procedures until they've changed their code to not violate or GPL'ed it. Worst for them is paying

Re: Kernel contributions from organisations and individual privacy

2015-06-11 Thread Rik van Riel
On 06/11/2015 01:10 AM, Chris Packham wrote: It's not a concern for the _employer_ (unless we say something particularly inflammatory), in fact the organisation sees the benefit of the company name getting out there in technical circles. It's more a case of the _employee_ not wanting their

Re: Kernel contributions from organisations and individual privacy

2015-06-11 Thread Rik van Riel
On 06/11/2015 07:26 PM, Ruben Safir wrote: Not at all. You have a good point there are definitely legal situations other than relicensing which are problematic. Lets say Apple decides that are going to take the Linux Kernel and alter it extensively, in order for it to work with a new

Re: Kernel contributions from organisations and individual privacy

2015-06-11 Thread Rik van Riel
On 06/11/2015 08:13 PM, Jeff Haran wrote: On 06/11/2015 07:26 PM, Ruben Safir wrote: Not at all. You have a good point there are definitely legal situations other than relicensing which are problematic. Lets say Apple decides that are going to take the Linux Kernel and alter it

Re: Issues with Community

2014-09-17 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/16/2014 07:22 PM, nick wrote: After numerous tries at good patches and still failing , I am listening to what you guys stated about my patches check it applies, grammar and build checks. I am still unable to get a good patch and would really

Re: Checkpatch Patches

2014-09-16 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/16/2014 01:12 PM, Nick Krause wrote: I am going to resend my patch and see if it's good and if not I am going to leave for a while. You may want to consider fixing them, by applying the advice provided by many people, before resending them.

Re: Checkpatch Patches

2014-09-16 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/16/2014 02:36 PM, Kristofer Hallin wrote: On Tue, Sep 16, 2014 at 8:29 PM, Nick Krause xerofo...@gmail.com wrote: On Tue, Sep 16, 2014 at 1:39 PM, valdis.kletni...@vt.edu wrote: On Tue, 16 Sep 2014 13:28:06 -0400, Rik van Riel said

one thing at a time

2014-08-18 Thread Rik van Riel
On 08/18/2014 01:13 PM, Nick Krause wrote: Valdis, I was interested in both at the same time, just asked about Beagle-boards first. I aren't having any difficulty with it , I just wanted to known more about this area as the docs out there are terrible and not worth reading on this part of

Re: HugePage by default

2014-07-30 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/30/2014 04:06 PM, Xin Tong wrote: I see 2 ways to do this. 1. allocate 512 4KB contiguous pages everytime a handle_mm_fault is called and have the THP kernel thread to coalesce it to a huge page. 2. modify the kernel (maybe extensively)

Re: Memory allocation problems on RHEL 6.3 kernel version 2.6.32-279.el6.x86_64

2014-07-10 Thread Rik van Riel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/09/2014 08:23 AM, Amit Agarwal wrote: Hi All, We are running a 32 bit application on RHEL6.3-64 bit OS with kernel version 2.6.32-279.el6.x86_64. While running this application we see the following when running under strace:

Re: Why the page tables are needed for lowmem?

2014-06-19 Thread Rik van Riel
On 06/18/2014 11:21 PM, sandeep kumar wrote: Hi All i was going through mm initialization code, and saw paging_init() implementation. it has a function map_lowmem(). I was wondering why do we need page table entries for lowmem ?? because all the pages in lowmem can be addressed by

Re: GSOC proposal

2014-03-18 Thread Rik van Riel
into word document. This does not appear to be related to the Linux kernel at all. Also, this is not the contact address for GSOC kernel projects. kind regards, Rik van Riel -- All rights reversed. ___ Kernelnewbies mailing list Kernelnewbies

Re: Regarding high mem

2012-10-17 Thread Rik van Riel
On 10/17/2012 04:52 AM, Kshemendra KP wrote: One thing not clear to me is, during boot, kernel is copied to 1st MB of the RAM in x86 architecture as this architecture has ISA mem map hole (640k -to 1MB). From 1st BM till 896MB is occupied by the kernel. Then user space will be made

Re: Does Linux process exist information leakage?

2012-01-19 Thread Rik van Riel
On 01/11/2012 01:44 PM, Greg Freemyer wrote: When a linux process dies, it first becomes a zombie and the parent process is signaled. The parent process at that point can still do various things. If the parent is a debugger, it can get all sorts of details from the zombie. When the

Re: Gmail complaining about authenticity of emails sent/received via kernelnewbies

2011-06-29 Thread Rik van Riel
On 06/29/2011 10:28 AM, Prashant Shah wrote: On Wed, Jun 29, 2011 at 6:15 PM, Rik van Rielr...@surriel.com wrote: Did Gmail make changes perhaps? just a wild guess. maybe something related to SPF http://mail.google.com/support/bin/answer.py?hl=enctx=mailanswer=185812 I know that the

Re: Gmail complaining about authenticity of emails sent/received via kernelnewbies

2011-06-29 Thread Rik van Riel
On 06/29/2011 01:19 PM, Mulyadi Santosa wrote: Hi Rik... Long time no chat :) On Wed, Jun 29, 2011 at 21:37, Rik van Rielr...@surriel.com wrote: You've got to be kidding me. SPF is fundamentally flawed in so many ways, noone should be recommending it in this day and age. So, what do

Re: academia contribution to the kernel

2011-05-31 Thread Rik van Riel
On 05/31/2011 05:45 AM, Pierre Vorhagen wrote: But I really wonder which type of Master (if any?) would maximize my chances of being hired by a company working on kernel development and related matters. Surely, a MSc in Computer Engineering would be more on-topic than a traditional MSc in

Re: [virtual memory] page_table_lock mmap_sem

2011-03-31 Thread Rik van Riel
On 03/29/2011 06:30 PM, Venkatram Tummala wrote: Hi, Why do we need both page_table_lock mmap_sem in the kernel. Why isn't mmap_sem good enough for serialization. As far as i see it, all attempts to change the page table hierarchy in the kernel is done after holding the write lock on

Re: please unsubscribe

2011-01-09 Thread Rik van Riel
On 01/09/2011 05:31 PM, gnulinux54 wrote: please unsubscribe Done. don't remember password I have enabled the monthly password reminder for this list to help others in the future. -- All rights reversed. ___ Kernelnewbies mailing list

Re: Linux - Getting your Hands Wet Dirty

2011-01-06 Thread Rik van Riel
On 01/05/2011 01:32 PM, Sakshi Malhotra wrote: I want to land up with a job in Linux Kernel but everywhere I get rejected for lack of practical experience. Dont know what to do to get relevant practical experince which gets counted and helps me land up with a job. I am low on morale and