Date: Tue, 18 Sep 2001 15:37:42 -0500 From: Dan Nelson <dnelson@allantgroup.com> To: "Dreamtime.net Inc." <clients@dreamtime.net> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Symbolic Links Message-ID: <20010918153741.B3372@dan.emsphone.com> In-Reply-To: <JEELLDECNKBMDHPNMECKGEJFDLAA.clients@dreamtime.net> References: <JEELLDECNKBMDHPNMECKKEIPDLAA.clients@dreamtime.net> <JEELLDECNKBMDHPNMECKGEJFDLAA.clients@dreamtime.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[ Followups set to freebsd-questions. This is not an SMP question. ] In the last episode (Sep 18), Dreamtime.net Inc. said: > Does anyone know the limit of how many symbolic links can be in one > directory? For one of our systems, we put a symbolic link in a > directory per each user. We have an install coming that will be fore > one million users. So we need a symbolic link for each one. But > wondering what the the max limit for symbolic links is for one > directory. In the last episode (Sep 18), Dreamtime.net Inc. said: > It seems my question was not too accurate. We need 1 million "soft" > symlinks, all in one directory, owned by only one user. > > To be exact, how many "soft" or "hard" sym.links are allowed in one > directory by FreeBSD 4.2? There is no restriction on hard or soft links per se, as they are just files. On the other hand, having a million files of any type in a single directory is probably not a good idea. If these are homedirs or mail spoolfiles, the usual workaround is to create subdirectories so "abcdefgh" becomes "ab/cdefgh" or "abc/defgh", which is much better wrt directory lookup speed. I wonder if the UFS_DIRHASH code would help here.. -- Dan Nelson dnelson@allantgroup.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010918153741.B3372>