The alpha build cuases the 'nfsuid bloated' warning to occur. Well,

there is nothing we can do about it.  In fact, after further review
    there simply are not very many instances of the two structures NFS
    checks for 'bloat' so I've decided to simply rip the checks out entirely.

Submitted by:	 Andrew Gallatin <gallatin@cs.duke.edu>
This commit is contained in:
Matthew Dillon 2000-01-13 20:18:25 +00:00
parent 278b83e09b
commit 34ddf54812
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=55934
10 changed files with 0 additions and 116 deletions

View File

@ -113,18 +113,6 @@
#define IO_METASYNC 0
#endif
/*
* Expected allocation sizes for major data structures. If the actual size
* of the structure exceeds these sizes, then malloc() will be allocating
* almost twice the memory required. This is used in nfs_init() to warn
* the sysadmin that the size of a structure should be reduced.
* (These sizes are always a power of 2. If the kernel malloc() changes
* to one that does not allocate space in powers of 2 size, then this all
* becomes bunk!)
*/
#define NFS_SVCALLOC 256
#define NFS_UIDALLOC 128
/*
* Arguments to mount NFS
*/

View File

@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
/*
* Check to see if major data structures haven't bloated.
*/
if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
printf("Try reducing NFS_UIDHASHSIZ\n");
}
if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
printf("Try unionizing the nu_nickname and nu_flag fields\n");
}
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);

View File

@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
/*
* Check to see if major data structures haven't bloated.
*/
if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
printf("Try reducing NFS_UIDHASHSIZ\n");
}
if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
printf("Try unionizing the nu_nickname and nu_flag fields\n");
}
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);

View File

@ -113,18 +113,6 @@
#define IO_METASYNC 0
#endif
/*
* Expected allocation sizes for major data structures. If the actual size
* of the structure exceeds these sizes, then malloc() will be allocating
* almost twice the memory required. This is used in nfs_init() to warn
* the sysadmin that the size of a structure should be reduced.
* (These sizes are always a power of 2. If the kernel malloc() changes
* to one that does not allocate space in powers of 2 size, then this all
* becomes bunk!)
*/
#define NFS_SVCALLOC 256
#define NFS_UIDALLOC 128
/*
* Arguments to mount NFS
*/

View File

@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
/*
* Check to see if major data structures haven't bloated.
*/
if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
printf("Try reducing NFS_UIDHASHSIZ\n");
}
if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
printf("Try unionizing the nu_nickname and nu_flag fields\n");
}
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);

View File

@ -113,18 +113,6 @@
#define IO_METASYNC 0
#endif
/*
* Expected allocation sizes for major data structures. If the actual size
* of the structure exceeds these sizes, then malloc() will be allocating
* almost twice the memory required. This is used in nfs_init() to warn
* the sysadmin that the size of a structure should be reduced.
* (These sizes are always a power of 2. If the kernel malloc() changes
* to one that does not allocate space in powers of 2 size, then this all
* becomes bunk!)
*/
#define NFS_SVCALLOC 256
#define NFS_UIDALLOC 128
/*
* Arguments to mount NFS
*/

View File

@ -113,18 +113,6 @@
#define IO_METASYNC 0
#endif
/*
* Expected allocation sizes for major data structures. If the actual size
* of the structure exceeds these sizes, then malloc() will be allocating
* almost twice the memory required. This is used in nfs_init() to warn
* the sysadmin that the size of a structure should be reduced.
* (These sizes are always a power of 2. If the kernel malloc() changes
* to one that does not allocate space in powers of 2 size, then this all
* becomes bunk!)
*/
#define NFS_SVCALLOC 256
#define NFS_UIDALLOC 128
/*
* Arguments to mount NFS
*/

View File

@ -113,18 +113,6 @@
#define IO_METASYNC 0
#endif
/*
* Expected allocation sizes for major data structures. If the actual size
* of the structure exceeds these sizes, then malloc() will be allocating
* almost twice the memory required. This is used in nfs_init() to warn
* the sysadmin that the size of a structure should be reduced.
* (These sizes are always a power of 2. If the kernel malloc() changes
* to one that does not allocate space in powers of 2 size, then this all
* becomes bunk!)
*/
#define NFS_SVCALLOC 256
#define NFS_UIDALLOC 128
/*
* Arguments to mount NFS
*/

View File

@ -1107,17 +1107,6 @@ nfs_init(vfsp)
nfsmount_zone = zinit("NFSMOUNT", sizeof(struct nfsmount), 0, 0, 1);
/*
* Check to see if major data structures haven't bloated.
*/
if (sizeof (struct nfssvc_sock) > NFS_SVCALLOC) {
printf("struct nfssvc_sock bloated (> %dbytes)\n",NFS_SVCALLOC);
printf("Try reducing NFS_UIDHASHSIZ\n");
}
if (sizeof (struct nfsuid) > NFS_UIDALLOC) {
printf("struct nfsuid bloated (> %dbytes)\n",NFS_UIDALLOC);
printf("Try unionizing the nu_nickname and nu_flag fields\n");
}
nfs_mount_type = vfsp->vfc_typenum;
nfsrtt.pos = 0;
rpc_vers = txdr_unsigned(RPC_VER2);

View File

@ -113,18 +113,6 @@
#define IO_METASYNC 0
#endif
/*
* Expected allocation sizes for major data structures. If the actual size
* of the structure exceeds these sizes, then malloc() will be allocating
* almost twice the memory required. This is used in nfs_init() to warn
* the sysadmin that the size of a structure should be reduced.
* (These sizes are always a power of 2. If the kernel malloc() changes
* to one that does not allocate space in powers of 2 size, then this all
* becomes bunk!)
*/
#define NFS_SVCALLOC 256
#define NFS_UIDALLOC 128
/*
* Arguments to mount NFS
*/