Skip to content
GitLab
Next
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitaly gitaly
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 561
    • Issues 561
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 56
    • Merge requests 56
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitalygitaly
  • Issues
  • #1565
Closed
Open
Issue created Mar 22, 2019 by Cody West@codyDeveloper

Language detection causing excessive CPU usage

It was brought to our attention by a customer (https://gitlab.zendesk.com/agent/tickets/115860 internal-only link) that the git-linguist process is consuming more CPU than expected. Specifically, it is processing a large ".ktr" xml file, taking longer than 40 minutes, and consuming 100% of the CPU.

I'd like to recommend that we could implement some sort of nice usage or a timeout so this is less likely.

It seems performance of language detection has been discussed before:

  • https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/19480
  • !751 (closed)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking