couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filipe Manana (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COUCHDB-1009) Make couch_stream buffer configurable
Date Wed, 23 Feb 2011 13:21:38 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-1009?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Filipe Manana updated COUCHDB-1009:
-----------------------------------

    Attachment: COUCHDB-1009-2.patch

Robert,

Do you agree with the .ini comment on this second patch?

diff --git a/etc/couchdb/default.ini.tpl.in b/etc/couchdb/default.ini.tpl.in
index 4c4d905..e1c1b4d 100644
--- a/etc/couchdb/default.ini.tpl.in
+++ b/etc/couchdb/default.ini.tpl.in
@@ -11,6 +11,10 @@ os_process_timeout = 5000 ; 5 seconds. for view and external servers.
 max_dbs_open = 100
 delayed_commits = true ; set this to false to ensure an fsync before 201 Created is returned
 uri_file = %localstaterundir%/couch.uri
+; Higher values may give better read performance due to less read operations
+; and/or more OS page cache hits, but they can also increase overall response
+; time for writes when there are many write requests in parallel.
+attachment_stream_buffer_size = 4096


> Make couch_stream buffer configurable
> -------------------------------------
>
>                 Key: COUCHDB-1009
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1009
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>         Environment: trunk
>            Reporter: Filipe Manana
>            Assignee: Filipe Manana
>            Priority: Trivial
>         Attachments: COUCHDB-1009-2.patch, COUCHDB-1009.patch
>
>
> The couch_stream buffer is hardcoded to 4Kb.
> This value should be configurable. Larger values can improve write and specially read
performance (if we write larger chunks to disk, we have higher chances of reading more contiguous
disk blocks afterwards). 
> I also think it's a good idea to change the default value from 4Kb to something higher
(64Kb for e.g.).
> Patch attached

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message