<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 07/25/2011 05:29 PM, Naveen Kumar wrote:
    <blockquote
cite="mid:CAP+Vj-XUx0pYAdaQKEkGEhQRTxVdMwPwXg8m-54hcrzZ1hw9pA@mail.gmail.com"
      type="cite">You can use command ulimit -a, there you can check the
      limit for a process.<br>
      <br>
      Thanks,<br>
      Naveen<br>
    </blockquote>
    Ulimit gives 1024 as open file limit. In struct task_struct it has a
    member called struct files_struct *files;<br>
    <br>
    I tried checking for this member and the limit however I am&nbsp; not
    able to decide correctly why the limit is 1024.<br>
    &nbsp;Also, is there any distinction between 32 bit and 64 bit systems
    for this limit?<br>
    <br>
    <br>
    <blockquote
cite="mid:CAP+Vj-XUx0pYAdaQKEkGEhQRTxVdMwPwXg8m-54hcrzZ1hw9pA@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">On Mon, Jul 25, 2011 at 5:18 PM, Anuz
        Pratap Singh Tomar <span dir="ltr">&lt;<a
            moz-do-not-send="true"
            href="mailto:chambilkethakur@gmail.com">chambilkethakur@gmail.com</a>&gt;</span>
        wrote:<br>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;"><br>
          <br>
          <div class="gmail_quote">
            <div class="im">On Mon, Jul 25, 2011 at 12:31 PM,
              Venkateswarlu P <span dir="ltr">&lt;<a
                  moz-do-not-send="true"
                  href="mailto:p.venkatesh551@gmail.com" target="_blank">p.venkatesh551@gmail.com</a>&gt;</span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
                0.8ex; border-left: 1px solid rgb(204, 204, 204);
                padding-left: 1ex;">
                <br clear="all">
                What is the Max no of files that can be opened
                simultaneously within a Single C program.<br>
                <br>
                i want this information for kenel compilation<br>
                <br>
                <br>
              </blockquote>
            </div>
            <div>See man 3 setrlimit<br>
              Total number of files that can be opened should depend on
              file system.<br>
              And what this has to do with kernel compilation? <br>
            </div>
            <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
              0.8ex; border-left: 1px solid rgb(204, 204, 204);
              padding-left: 1ex;"><br>
              <br>
              <br>
              <br>
              <br>
              <br>
              _______________________________________________<br>
              Kernelnewbies mailing list<br>
              <a moz-do-not-send="true"
                href="mailto:Kernelnewbies@kernelnewbies.org"
                target="_blank">Kernelnewbies@kernelnewbies.org</a><br>
              <a moz-do-not-send="true"
                href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies"
                target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
              <br>
            </blockquote>
          </div>
          <br>
          <br>
          _______________________________________________<br>
          Kernelnewbies mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
          <a moz-do-not-send="true"
            href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies"
            target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
          <br>
        </blockquote>
      </div>
      <br>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Kernelnewbies mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a>
<a class="moz-txt-link-freetext" href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a>
</pre>
    </blockquote>
    Regards,<br>
    Abhijit<br>
  </body>
</html>