kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Is vnode number also limit system-wide number of open file?
@ 2017-05-31 13:37 Yubin Ruan
  2017-05-31  7:34 ` Okash Khawaja
  2017-05-31 17:30 ` Rik van Riel
  0 siblings, 2 replies; 7+ messages in thread
From: Yubin Ruan @ 2017-05-31 13:37 UTC (permalink / raw)
  To: kernelnewbies

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 table? 

If that is the case, would that limit the number of open file in Linux?

I know there *is* such a limit, and superusers can adjust that by
/proc/sys/fs/file-max. Currently I cannot raise that to too high, otherwise
the system would crash, which I think is because I have limited memory. But,
the point is, if I have lots of memory in my machine (say hunderds of
Gigabytes), would the number of open file system-wide limited by the `i_ino'
above? Since its type is "unsigned long", I guess I can only open
2^(sizeof(unsigned long)) file simultaneously? 

--
Yubin


[1]: http://elixir.free-electrons.com/linux/latest/source/include/linux/fs.h#L575

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-06-01  9:15 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-31 13:37 Is vnode number also limit system-wide number of open file? Yubin Ruan
2017-05-31  7:34 ` Okash Khawaja
2017-05-31 17:47   ` Yubin Ruan
2017-05-31 17:30 ` Rik van Riel
2017-06-01  9:15   ` Yubin Ruan
2017-06-01  2:12     ` valdis.kletnieks at vt.edu
2017-06-01  2:16     ` Manish Katiyar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).