Re: Re: How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread greg kh
On Fri, Mar 08, 2019 at 03:34:18PM +0800, wuzhouhui wrote: > > -Original Messages- > > From: "Greg KH" > > Sent Time: 2019-03-08 15:21:52 (Friday) > > To: wuzhouhui > > Cc: kernelnewbies@kernelnewbies.org > > Subject: Re: How to avoid or reduce GFP_ATOMIC allocation failed > > > > On

Re: Re: How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread wuzhouhui
> -Original Messages- > From: "Greg KH" > Sent Time: 2019-03-08 15:21:52 (Friday) > To: wuzhouhui > Cc: kernelnewbies@kernelnewbies.org > Subject: Re: How to avoid or reduce GFP_ATOMIC allocation failed > > On Fri, Mar 08, 2019 at 01:37:26PM +0800, wuzhouhui wrote: > > Hi, > > > > I

Re: How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread Greg KH
On Fri, Mar 08, 2019 at 01:37:26PM +0800, wuzhouhui wrote: > Hi, > > I check kernel code and found that GFP_ATOMIC allocation will > use emergency pool and maybe failed if emergency pool is not > enough. And GFP_ATOMIC doesn't trigger reclaim (because of > ATOMIC) even if there are a lot of page

How to avoid or reduce GFP_ATOMIC allocation failed

2019-03-07 Thread wuzhouhui
Hi, I check kernel code and found that GFP_ATOMIC allocation will use emergency pool and maybe failed if emergency pool is not enough. And GFP_ATOMIC doesn't trigger reclaim (because of ATOMIC) even if there are a lot of page caches. So my question is how to avoid or reduce GFP_ATOMIC allocation

Re: exit-code of 251

2019-03-07 Thread prashantkumar dhotre
The issue is not easy to reproduce. unable to reproduce that even after many retries. On Thu, Mar 7, 2019 at 2:30 PM wrote: > On Wed, 06 Mar 2019 17:20:07 +0530, prashantkumar dhotre said: > > > Could you please let me know if any system call can exit with 251 ? > > I am trying to find out who

AW: Using EHSET module

2019-03-07 Thread CHMIELARZ Radoslaw
Hi Greg, OK, thanks. I will ask there. As for the system yes, we are using this module as a host. Cheers, Radek -Ursprüngliche Nachricht- Von: Greg KH Gesendet: czwartek, 7 marca 2019 12:53 An: CHMIELARZ Radoslaw Cc: kernelnewbies@kernelnewbies.org Betreff: Re: Using EHSET module

Re: Using EHSET module

2019-03-07 Thread Greg KH
On Thu, Mar 07, 2019 at 11:41:58AM +, CHMIELARZ Radoslaw wrote: > Hi, > > I'm trying to certify USB on our device that is running Linux 4.14. > For windows systems we were using https://www.usb.org/usb2tools. For > linux the only option I have found is a kernel module called EHSET. >

Using EHSET module

2019-03-07 Thread CHMIELARZ Radoslaw
Hi, I'm trying to certify USB on our device that is running Linux 4.14. For windows systems we were using https://www.usb.org/usb2tools. For linux the only option I have found is a kernel module called EHSET. Unfortunately I can't manage to get it working, can You please help? I have added

Re: exit-code of 251

2019-03-07 Thread valdis . kletnieks
On Wed, 06 Mar 2019 17:20:07 +0530, prashantkumar dhotre said: > Could you please let me know if any system call can exit with 251 ? > I am trying to find out who exited with 251 ? strace is your friend. ___ Kernelnewbies mailing list

Re: undefined reference to `ioctl_tty'

2019-03-07 Thread valdis . kletnieks
On Wed, 06 Mar 2019 03:50:10 -0500, Jeffrey Walton said: > Yeah, the race seems to be the downside to ioctl and TIOEXCL. > > It is too bad Linux does not honor O_EXCL for the device, or provide a > similar open flag like SOCK_NONBLOCK was added to avoid the race in > sockets. It would avoid a lot