Max open file limit

2012-12-05 Thread Vijay Chauhan
Hello, How many files a process can open at a time? Is it configurable? I found following in the kernel code: .. .max_fds= NR_OPEN_DEFAULT, .. .. #define NR_OPEN_DEFAULT BITS_PER_LONG .. .. #ifdef __KERNEL__ #define BITS_PER_LONG 32 .. But I can open more than 32 files in my user

Re: Max open file limit

2012-12-05 Thread Rajat Sharma
Well this is not really a limit on number of files, rather a memory allocation optimization for fd_array. The limit you are looking for is: int sysctl_nr_open __read_mostly = 1024*1024; $ cat /proc/sys/fs/nr_open 1048576 -Rajat On Wed, Dec 5, 2012 at 4:38 PM, Vijay Chauhan

Re: Max open file limit

2012-12-05 Thread Denis Kirjanov
#define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ On 12/5/12, Vijay Chauhan kernel.vi...@gmail.com wrote: Hello, How many files a process can open at a time? Is it configurable? I found following in the kernel code: .. .max_fds= NR_OPEN_DEFAULT, .. ..

Re: Max open file limit

2012-12-05 Thread Denis Kirjanov
Look at the include/asm-generic/resource.h On 12/5/12, Denis Kirjanov kirja...@gmail.com wrote: #define INR_OPEN_CUR 1024 /* Initial setting for nfile rlimits */ On 12/5/12, Vijay Chauhan kernel.vi...@gmail.com wrote: Hello, How many files a process can open at a time? Is it

[no subject]

2012-12-05 Thread Niroj Pokhrel
Hi, I'm trying to work on android audio (pcm_native.c) but got stuck in some parameters like start threshold, stop threshold, silence zone, silence threshold. Can anybody please elaborate on what they are each used for ?? -- Niroj Pokhrel Software Engineer, Samsung India Software Operations

Re:

2012-12-05 Thread Anuz Pratap Singh Tomar
On Wed, Dec 5, 2012 at 1:48 PM, Niroj Pokhrel nirojpokh...@gmail.comwrote: Hi, I'm trying to work on android audio (pcm_native.c) but got stuck in some parameters like start threshold, stop threshold, silence zone, silence threshold. Can anybody please elaborate on what they are each used for

transfering pages from user space to user space

2012-12-05 Thread Pablo Pessolani
Hi: I am working on a project to copy (page aligned) the buffer content of one process to the buffer of other process. Now I resolved this issue using copy_page() but, analizing performance with different buffer sizes, the copy_page becames the critical time component and