Whamcloud - gitweb
Instead of making two 128k request buffers, make ten 64k buffers. Each thread
authorpschwan <pschwan>
Sat, 15 Jun 2002 06:50:44 +0000 (06:50 +0000)
committerpschwan <pschwan>
Sat, 15 Jun 2002 06:50:44 +0000 (06:50 +0000)
can currently pin at most one request buffer, and with six OST threads it was
trivial to pin both request buffers and exhaust our RPC handling ability.

lustre/include/linux/lustre_net.h
lustre/mds/handler.c
lustre/ost/ost_handler.c

index 75470a4..139330c 100644 (file)
@@ -54,7 +54,7 @@
 #define LDLM_CLI_REPLY_PORTAL   18
 
 /* default rpc ring length */
-#define RPC_RING_LENGTH    2
+#define RPC_RING_LENGTH    10
 
 #define SVC_KILLED 1
 #define SVC_EVENT  2
index 9505a15..ffdefee 100644 (file)
@@ -864,7 +864,7 @@ static int mds_setup(struct obd_device *obddev, obd_count len, void *buf)
                 GOTO(err_put, rc);
         }
 
-        mds->mds_service = ptlrpc_init_svc(128 * 1024,
+        mds->mds_service = ptlrpc_init_svc(64 * 1024,
                                            MDS_REQUEST_PORTAL, MDC_REPLY_PORTAL,                                           "self", mds_handle);
         if (!mds->mds_service) {
                 CERROR("failed to start service\n");
index 9259b70..79592f6 100644 (file)
@@ -634,7 +634,7 @@ static int ost_setup(struct obd_device *obddev, obd_count len, void *buf)
         if (obddev->obd_namespace == NULL)
                 LBUG();
 
-        ost->ost_service = ptlrpc_init_svc(128 * 1024,
+        ost->ost_service = ptlrpc_init_svc(64 * 1024,
                                            OST_REQUEST_PORTAL, OSC_REPLY_PORTAL,
                                            "self", ost_handle);
         if (!ost->ost_service) {