From: Michał B. <mic...@ge...> - 2010-06-22 10:47:35
|
Mfscgiserv was not touched by the patches, we had made tests with the exact patches and it worked properly. You can also try to run mfscgiserv with options -f and -v: /usr/local/sbin/mfscgiserv -f -v This way mfscgiserv would work in foreground and would write supported requests like: # /usr/local/sbin/mfscgiserv -f -v starting simple cgi server (host: any , port: 9425 , rootpath: /usr/local/share/mfscgi) Asynchronous HTTP server running on port 9425 localhost - - [22/Jun/2010 11:14:11] "GET / HTTP/1.1" 301 localhost - - [22/Jun/2010 11:14:11] "GET /index.html HTTP/1.1" 200 localhost - - [22/Jun/2010 11:14:12] "GET /mfs.cgi HTTP/1.1" 200 localhost - - [22/Jun/2010 11:14:12] "GET /mfs.css HTTP/1.1" 200 localhost - - [22/Jun/2010 11:14:12] "GET /logomini.png HTTP/1.1" 200 This should give us more interesting information. We were also wondering if you could test your environment of 400 million files putting master swap file on an SSD hard drive? Regards Michał From: marco lu [mailto:mar...@gm...] Sent: Tuesday, June 22, 2010 10:17 AM To: Michał Borychowski Cc: moo...@li... Subject: Re: [Moosefs-users] mfs-master[4166]: CS(10.10.10.10) packet too long (226064141/50000000) Thank Michał Borychowski ! This problem is resolved. The mfs system is restored too. Another question is : when i recompile mfsmaster as you said, mfscgiserv process cannot work normally. this process disappeared when i visit this url. Without any message (syslog or dmesg) to debug this problem . Thanks again. Mumonitor 2010/6/21 Michał Borychowski <mic...@ge...> We give you here some quick patches you can implement to the master server to improve its performance for that amount of files: In matocsserv.c in mfsmaster you need to change this line: #define MaxPacketSize 50000000 into this: #define MaxPacketSize 500000000 Also we suggest a change in filesystem.c in mfsmaster in "fs_test_files" function. Change this line: if ((uint32_t)(main_time())<=starttime+150) { into: if ((uint32_t)(main_time())<=starttime+900) { And also changing this line: for (k=0 ; k<(NODEHASHSIZE/3600) && i<NODEHASHSIZE ; k++,i++) { into this: for (k=0 ; k<(NODEHASHSIZE/14400) && i<NODEHASHSIZE ; k++,i++) { You need to recompile the master server and start it again. The above changes should make the master server work more stable with large amount of files. Another suggestion would be to create two MooseFS instances (eg. 2 x 200 million files). One master server could also be metalogger for the another system and vice versa. Kind regards Michał From: marco lu [mailto:mar...@gm...] Sent: Monday, June 21, 2010 6:04 AM To: moo...@li... Subject: [Moosefs-users] mfs-master[4166]: CS(10.10.10.10) packet too long (226064141/50000000) hi, everyone We intend to use moosefs at our product environment as the storage of our online photo service. We'll store for about 400 million photo files. So the master server's mem is a big problem. I've built one master server(64G mem), one metalogger server, three chunk servers(10*1T SATA). When I copy photo files to the moosefs system. At start everything is good. But when the master server's exhaust the memories. I got many error syslog from master server: Jun 21 11:48:58 mfs-master[4166]: currently unavailable chunk 00000000018140FF (inode: 26710547 ; index: 0) Jun 21 11:48:58 mfs-master[4166]: * currently unavailable file 26710547: img.xxx.com/003/810/560/b.jpg Jun 21 11:48:58 mfs-master[4166]: currently unavailable chunk 000000000144B907 (inode: 22516243 ; index: 0) Jun 21 11:48:58 mfs-master[4166]: * currently unavailable file 22516243: img.xxx.com/051/383/419/a.jpg and some error message like this: Jun 21 11:49:31 mfs-master[4166]: chunkserver disconnected - ip: 10.10.10.11, port: 0, usedspace: 0 (0.00 GiB), totalspace: 0 (0.00 GiB) Jun 21 11:50:03 mfs-master[4166]: CS(10.25.40.111) packet too long (226064141/50000000) Jun 21 11:50:03 mfs-master[4166]: chunkserver disconnected - ip: 10.10.10.12, port: 0, usedspace: 0 (0.00 GiB), totalspace: 0 (0.00 GiB) Jun 21 11:50:34 mfs-master[4166]: CS(10.25.40.113) packet too long (217185941/50000000) Jun 21 11:50:34 mfs-master[4166]: chunkserver disconnected - ip: 10.10.10.13, port: 0, usedspace: 0 (0.00 GiB), totalspace: 0 (0.00 GiB) It's a memory problem or a kernel tuning problem? Anyone can give me some information? Thans all. Mumonitor |