Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux AIO

LinuxµÄI/O»úÖƾ­ÀúÁËһϼ¸¸ö½×¶ÎµÄÑݽø£º
1. ͬ²½×èÈûI/O: Óû§½ø³Ì½øÐÐI/O²Ù×÷£¬Ò»Ö±×èÈûµ½I/O²Ù×÷Íê³ÉΪֹ¡£
2. ͬ²½·Ç×èÈûI/O: Óû§³ÌÐò¿ÉÒÔͨ¹ýÉèÖÃÎļþÃèÊö·ûµÄÊôÐÔO_NONBLOCK£¬I/O²Ù×÷¿ÉÒÔÁ¢¼´·µ»Ø£¬µ«ÊDz¢²»±£Ö¤I/O²Ù×÷³É¹¦¡£
3. Ò첽ʼþ×èÈûI/O: Óû§½ø³Ì¿ÉÒÔ¶ÔI/Oʼþ½øÐÐ×èÈû£¬µ«ÊÇI/O²Ù×÷²¢²»×èÈû¡£Í¨¹ýselect/poll/epollµÈº¯Êýµ÷ÓÃÀ´´ïµ½´ËÄ¿µÄ¡£
4. Ò첽ʱ¼ä·Ç×èÈûI/O: Ò²½Ð×öÒì²½I/O(AIO)£¬Óû§³ÌÐò¿ÉÒÔͨ¹ýÏòÄں˷¢³öI/OÇëÇóÃüÁ²»ÓõȴøI/OʼþÕæÕý·¢Éú£¬¿ÉÒÔ¼ÌÐø×ö
           ÁíÍâµÄÊÂÇ飬µÈI/O²Ù×÷Íê³É£¬Äں˻áͨ¹ýº¯Êý»Øµ÷»òÕßÐźŻúÖÆ֪ͨÓû§½ø³Ì¡£ÕâÑùºÜ´ó³Ì¶ÈÌá¸ßÁËϵͳÍÌÍÂÁ¿¡£
           
ÏÂÃæ¾ÍAIO×öÏêϸ½éÉÜ£º
ҪʹÓÃaioµÄ¹¦ÄÜ£¬ÐèÒªincludeÍ·Îļþaio.h£¬ÔÚ±àÒëÁ¬½ÓµÄʱºòÐèÒª¼ÓÈëPOSIXʵʱÀ©Õ¹¿ârt.ÏÂÃæ¾Íaio¿âµÄʹÓÃ×ö½éÉÜ¡£
1. AIOÕû¸ö¹ý³ÌËùʹÓõÄÊý¾Ý´æ·ÅÔÚÒ»¸ö½á¹¹ÌåÖУ¬struct aiocb,aio control block.¿´¿´Í·ÎļþÖеĶ¨Ò壺
/* Asynchronous I/O control block.  */
struct aiocb
{
  int aio_fildes;               /* File desriptor.  */ ÐèÒªÔÚÄĸöÎļþÃèÊö·ûÉϽøÐÐI/O
  int aio_lio_opcode;           /* Operation to be performed.  */ Õâ¸öÊÇÕë¶ÔÅúÁ¿I/OµÄÇé¿öÓÐЧ£¬¶Áд²Ù×÷ÀàÐÍ
  int aio_reqprio;              /* Request priority offset.  */ ÇëÇóÓÅÏȼ¶£¨If  _POSIX_PRIORITIZED_IO  is defined, and this file supports it, then the
                                       asynchronous operation is submitted at a priority equal to that of the
                       &n


Ïà¹ØÎĵµ£º

Èý¿î Linux ϵÄÃâ·Ñ×ÀÃ漶ɱ¶¾Èí¼þ(ͼ)


ÓÉÓÚ Linux Á¼ºÃµÄÓû§È¨ÏÞ¹ÜÀíÌåϵ£¬²¡¶¾ÍùÍùÊÇ Linux ϵͳ¹ÜÀíÔ±×îºó²ÅÐèÒª¿¼ÂǵÄÎÊÌâ¡£ÒÔÍù£¬Linux ÉϵÄɱ¶¾Èí¼þÖ÷ÒªÊÇΪÆóÒµµÄÓʼþºÍÎļþ·þÎñÆ÷ËùÉè¼ÆµÄ¡£Èç½ñ£¬Ëæ×Å Linux ×ÀÃæÓû§ÊýÁ¿µÄÔö³¤£¬×ÀÃæÓû§ÔÚÊÜÒæÓÚ Linux ϵͳ¶Ô²¡¶¾½ÏÇ¿µÄÌìÈ»ÃâÒßÁ¦µÄͬʱ£¬Ò²ÐèҪɱ¶¾Èí¼þÇåÀí´ÓÍøÂç»òUÅÌ´øÀ´µÄWIndows²¡¶¾¡£¾¡¹ÜÄÇЩ ......

LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö

LinuxÎļþ²éÕÒÃüÁîfind,xargsÏêÊö
×ܽ᣺zhy2111314
À´×Ô£ºLinuxSir.Org
ÕûÀí£º±±ÄÏÄϱ±
ÕªÒª£º ±¾ÎÄÊÇfind ÃüÁîµÄÏêϸ˵Ã÷£¬¿É¹óµÄÊÇÕë¶Ô²ÎÊý¾ÙÁ˺ܶàµÄʵÀý£¬´óÁ¿µÄÀýÖ¤£¬ÈóõѧÕ߸üΪÈÝÒ×Àí½â£»±¾ÎÄÊÇzhyflyÐÖÌùÔÚÂÛ̳ÖУ»ÎÒ¶Ô±¾ÎĽøÐÐÁËÔÙ´ÎÕûÀí£¬Îª·½±ã´ó¼ÒÔĶÁ£»
Ŀ¼
°æȨÉùÃ÷
Ç°ÑÔ£º¹ØÓÚfindÃüÁî
Ò»¡¢ ......

LinuxϵÄELFÎļþ¸ñʽ¼ò½é

£¨1£©¸ÅÊö
      Executable and linking format(ELF)ÎļþÊÇx86 LinuxϵͳϵÄÒ»ÖÖ³£ÓÃÄ¿±êÎļþ(object file)¸ñʽ£¬ELFÎļþ¸ñʽ±È½Ï¸´ÔÓ£¬±¾ÎÄÖ»ÊǼòÒª½éÉÜËüµÄ½á¹¹¡£ÓÐÈýÖÖÖ÷ÒªÀàÐÍ£º
(1)ÊÊÓÚÁ¬½ÓµÄ¿ÉÖض¨Î»Îļþ(relocatable file)£¬¿ÉÓëÆäËüÄ¿±êÎļþÒ»Æð´´½¨¿ÉÖ´ÐÐÎļþºÍ¹²ÏíÄ¿±êÎļþ¡£
(2) ......

linuxÏÂi386,i486,i586,i686µÄÇø±ð


linuxÏÂi386,i486,i586,i686µÄÇø±ð
.
i386,i486,i586·Ö±ðÊÇÕë¶Ô80386,80486,80586±àÒëµÄ°ü£¬i686¾Í±È½Ï¹ã·ºÁË£¬´Óp2¿ªÊ¼x86´¦ÀíÆ÷¾Í½øÈëÁËp6¹¹¼ÜµÄʱ´ú£¬Ò»Ö±µ½ÏÖÔÚ¶¼ÊÇp6¼Ü¹¹¡£Ð¼ܹ¹µÄcpuÏòϼæÈÝΪ¾É¼Ü¹¹±àÒëµÄÈí¼þ°ü.
i386.rpmÓëi686.rpmÓÐʲôÇø±ð?
x86Ìåϵ½á¹¹ËäȻָÁһÑù£¬µ«ÊDz»Í¬Ê±´úµÄ¾ßÌåʵÏÖ£¬ÔÚ±àÒëÓ ......

LinuxÏÂÈçºÎ²é¿´CPUÐÅÏ¢, °üÀ¨Î»ÊýºÍ¶àºËÐÅÏ¢


# uname -a
Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux
(²é¿´µ±Ç°²Ù×÷ϵͳÄÚºËÐÅÏ¢)
# cat /etc/issue | grep Linux
Red Hat Enterprise Linux AS release 4 (Nahant Update 5)
(²é¿´µ±Ç°²Ù×÷ϵͳ·¢ÐаæÐÅÏ¢)
# cat /proc/cpuinfo | grep name | cut -f2 -d: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ